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 VolumeItem

VolumeDirectory objects are a type of VolumeItem

LEXICON

LEXICON of VolumeFile or VolumeDirectory

Lists all files and directories

LEX

LEXICON of VolumeFile or VolumeDirectory

Alias for LEXICON

LIST

LEXICON of VolumeFile or VolumeDirectory

Alias for LEXICON

VolumeDirectory:LEXICON()
Returns

Lexicon of VolumeFile or VolumeDirectory

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 or VolumeDirectory 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.