Creates a directory at the specified path.
The directory path to create
Boolean indicating success or failure
Deletes a directory at the specified path.
The directory path to delete
Boolean indicating success or failure
Deletes a file.
The file path to delete
Boolean indicating success or failure
Checks if a directory exists.
The directory path to check
Boolean indicating if directory exists
Checks if a file exists.
The file path to check
Boolean indicating if file exists
Lists the contents of a directory.
The directory path to list
Array of file/directory names, or null if directory doesn't exist
Reads content from a file.
The file path to read from
File content or null if file doesn't exist
Writes content to a file.
The file path to write to
The content to write
Boolean indicating success or failure
Static
CreateFactory method to create an OPFSFileSystem instance.
The created OPFSFileSystem instance
Static
IsChecks if OPFS is supported in the current browser.
Boolean indicating OPFS support
Implementation of IFileSystem using the Origin Private File System (OPFS) API. This provides persistent file storage that survives browser restarts and is private to the origin.