Class std.io.FileSystem
Synopsis
public static class FileSystem
A static class containing methods relating to the file system.
Fields
Constructors
Methods
Get the last access time of the specified file or directory.
Arguments
| path | Path to the file or directory, in the system's native path format. | 
|---|
Returns
A DateTime object indicating the last access time.
Get the last access time of the specified file or direcotry.
Arguments
| path | Path to the file or directory. | 
|---|
Returns
A DateTime object indicating the last access time.
Get the last modification time of the specified file or directory.
Arguments
| path | Path to the file or directory, in the system's native path format. | 
|---|
Returns
A DateTime object indicating the last access time.
Get the last modification time of the specified file or directory.
Arguments
| path | Path to the file or directory. | 
|---|
Returns
A DateTime object indicating the last access time.
Create a new directory.
The parent directory must already exist, and the directory itself must not.
Arguments
| path | Path to the directory to be created. | 
|---|
Throws
| std.io.IOError | If the creation failed. | 
|---|
Create a new directory.
The parent directory must already exist, and the directory itself must not.
Arguments
| path | Path to the directory to be created. | 
|---|
Throws
| std.io.IOError | If the creation failed. | 
|---|
Determine if the specified path names an (accessible) directory.
This function returns true if the path refers to a directory, and false is ALL
other cases, including if the path cannot be accessed, or does not exist, etc. It
never throws exceptions!
Arguments
| path | Path to be checked. | 
|---|
Returns
true if the path refers to a directory.
Determine if the specified path names an (accessible) directory.
This function returns true if the path refers to a directory, and false is ALL
other cases, including if the path cannot be accessed, or does not exist, etc. It
never throws exceptions!
Arguments
| path | Path to be checked. | 
|---|
Returns
true if the path refers to a directory.
Determine if the specified path refers to an existing accessible object.
This function returns true if the path is either a directory, or a file which could
be opened. It returns false in all other cases, and never throws exceptions.
Arguments
| path | Path to be checked. | 
|---|
Returns
true if the path refers to an existing accessible object.
Determine if the specified path refers to an existing accessible object.
This function returns true if the path is either a directory, or a file which could
be opened. It returns false in all other cases, and never throws exceptions.
Arguments
| path | Path to be checked. | 
|---|
Returns
true if the path refers to an existing accessible object.
Create a directory, and any parent directories if they don't yet exist.
If the directory already exists, nothing happens. If one of the would-be
parents exists but is not a directory, an IOError is thrown.
Throws
| std.io.IOError | If one of the parents is not a directory. | 
|---|
Create a directory, and any parent directories if they don't yet exist.
If the directory already exists, nothing happens. If one of the would-be
parents exists but is not a directory, an IOError is thrown.
Throws
| std.io.IOError | If one of the parents is not a directory. | 
|---|