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¶
Members¶ Suffix
Type
Description
All suffixes of
VolumeItemVolumeDirectoryobjects are a type ofVolumeItemLEXICONofVolumeFileorVolumeDirectoryLists all files and directories
LEXICONofVolumeFileorVolumeDirectoryAlias for
LEXICONLEXICONofVolumeFileorVolumeDirectoryAlias for
LEXICON
- VolumeDirectory:LEXICON()¶
- Returns
LexiconofVolumeFileorVolumeDirectory
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
VolumeFileorVolumeDirectoryitself 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.