Clears all files in the file system (mainly for testing purposes).
Deletes a file.
The path to the file.
True if the file was successfully deleted, false otherwise.
Checks if a file exists.
The path to the file.
True if the file exists, false otherwise.
Retrieves all file names in the file system.
An array of file names.
Reads the content of a file.
The path to the file.
The file content as a string, or null if the file does not exist.
Renames a file.
The current path of the file.
The new path for the file.
True if the file was successfully renamed, false otherwise.
Writes data to a file.
The path to the file.
The data to write.
Interface representing a file system for managing files.