The path to the plugin's data directory.
Checks if a file or directory exists in the plugin's data directory.
The relative path to the file or directory to check.
True if the file or directory exists, otherwise false.
Creates a directory in the plugin's data directory.
The relative path to the directory to create.
The path of the created directory if successful, otherwise undefined.
Reads the contents of a directory in the plugin's data directory.
The relative path to the directory to read.
An array of file and directory names in the specified directory, or null if the directory does not exist or is invalid.
Reads a file from the plugin's data directory.
The relative path to the file to read.
The file data if it exists and is valid, otherwise null.
Reads a file from the plugin's data directory.
The relative path to the file to read.
Optional encoding. If provided, returns a string; otherwise, returns a Buffer.
The file data if it exists and is valid, otherwise null.
Removes a file from the plugin's data directory.
The relative path to the file to remove.
Removes a directory from the plugin's data directory.
The relative path to the directory to remove.
Writes data to a file in the plugin's data directory.
The relative path to the file to write.
The data to write to the file.
Creates an instance of the PluginFileSystem class.