Utility class for easy access to operations on application folders
Determines whether the specified file exists in the folder.
The name of the file.
A promise that completes with a value of either true (if the file exists) or false.
Reads the specified file. If the file doesn't exist, the specified default value is returned.
The file to read from.
The default value to be returned if the file failed to open.
A promise that completes with a value that is either the contents of the file, or the specified default value.
Deletes a file from the folder.
The file to be deleted.
A promise that is fulfilled when the file has been deleted.
Writes the specified text to the specified file.
The name of the file.
The content to be written to the file.
A promise that completes with a value that is the number of characters written.