VolumeDirectory¶
Represents a directory on a kOS file system.
Instances of this class are enumerable, every step of iteration will provide a VolumeFile
or a VolumeDirectory
contained in this directory.
- structure VolumeDirectory¶
¶ Suffix
Type
Description
All suffixes of
VolumeItem
VolumeDirectory
objects are a type ofVolumeItem
LEXICON
ofVolumeFile
orVolumeDirectory
Lists all files and directories
LEXICON
ofVolumeFile
orVolumeDirectory
Alias for
LEXICON
LEXICON
ofVolumeFile
orVolumeDirectory
Alias for
LEXICON
- VolumeDirectory:LEXICON()¶
- Returns
Lexicon
ofVolumeFile
orVolumeDirectory
Returns a Lexicon of all files and directories in this directory, with each pair in the Lexcion having the string name of the file or directory as the key, and the
VolumeFile
orVolumeDirectory
itself as the value.
- VolumeDirectory:LEX()¶
An alias for
LEXICON
.
- VolumeDirectory:LIST()¶
An alias for
LEXICON
. It’s slightly wrong that a method called “List” returns a Lexicon instead of a List, but it has been that way long enough that now for backward compatibility, the name “List” had to remain as an alias for this method.