implements IO.Path
Represents a file in the filesystemFile(string path) |
path | the path as a string. |
name | the file or folder name portion of the path as a string. |
exists() | returns true if the file or folder exists in the filesystem. |
folder() | returns true if the path is a folder. |
len() | the size of the file |
readAll() | reads the entire contents of the file into a string |
writeAll(string body) |
The path as a string.
The file or folder name portion of the path as a string.
Returns true if the file or folder exists in the filesystem.
Returns true if the path is a folder.
The size of the file
Reads the entire contents of the file into a string