Interface for operating on a file in the loaded file system
Readonly
Path of the file relative to the root of the file system (the uploaded directory)
Close the file. In memory content will be lost. Further operations on the file will fail
Get the content of the file
Get the last modified time. May load it from file system if needed
Get the text content of the file
If the file is not loaded, it will load it.
If the file is not a text file, it will return InvalidEncoding
Returns if the content of the file in memory is newer than the file on disk
Load the file's content from FS.
Overwrites any unsaved changes in memory only if the file was modified at a later time than the last in memory modification.
If it fails, the file's content in memory will not be changed
Load the file's content if it's not newer than fs
Returns Ok if the file is newer than fs
Set the content in memory. Does not save to disk. Does nothing if file is closed
Save the file's content to FS if it is dirty.
If not dirty, returns Ok
Interface for operating on a file in the loaded file system