A handle to a directory on disk. Lists contents, creates subdirectories, and walks file trees.
Returns a list of accessible ancestor directories.
Deprecated. Replaced by accessibleAncestors.
Returns a list of ancestor directories.
Returns a File or Directory object matching the name specified by aString or Nil if no such file or directory exists.
Create the directory if it doesn't exist. Returns self on success (or if the directory already exists), nil on failure.
Deprecated. Returns a new file object in the directory with the specified name.
Creates the directory (and any missing ancestor directories) if they don't exist. Returns self.
Create a subdirectory with the specified name.
Returns the current working directory path.
Returns a list of subdirectories in the receiver.
Returns a Directory object for the specified file name whether or not it exists.
Returns true if the Directory path exists, and false otherwise. If optionalPath string is provided, it tests the existence of that path instead.
Returns a File object for the specified file name whether it exists or not.
Returns a list of strings for the names of the files (no subdirectories) in the directory.
Returns a list of File objects for the files in the Directory (no directories).
Returns a list of File objects for the files in the Directory (no directories) with the specified file extension.
Deprecated. Replaced by directoryNamed().
Deprecated. Returns a new Directory object in the directory with the specified name.
Deprecated. Replaced by directories().
Returns true if the directory can be accessed, false otherwise.
Returns a list object containing File and Directory objects for the files and directories of the receiver's path.
All subitems excluding '.' and '..'.
Moves the directory to the specified path.
Returns the receiver's last path component.
Returns the parent directory object or nil if there is no parent directory.
Deprecated. Replaced by ancestorDirectories.
Returns the directory path. The default path is '.'.
Returns a list containing all files in the directory or any subdirectory that has any of the specified suffixes.
Removes the directory.
Sets the current working directory path. Returns true on success or false on error.
Sets the directory path. Returns self.
Returns a Number containing the number of file and directory objects at the receiver's path.
Recursively walks the current directory, and executes a given callback on each item (either File or Directory) found, excluding "." and "..".
Io> Directory walk(println)
A0_List.io
A1_OperatorTable.io
...
Io> Directory walk(f, if(f name startsWithSeq("Directory"), f println))
Directory.io
Returns a new instance with the provided path.