implements IO.Path
Represents a file in the filesystemFile(string path) |
name | the file or folder name portion of the path as a string |
path | the path as a string |
bytes() | reads the entire contents of the file into a buffer |
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 |
reader() | |
remove() | |
text() | reads the entire contents of the file into a string |
writer() |
The file or folder name portion of the path as a string.
The path as a string.
Reads the entire contents of the file into a buffer
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