Deprecated. Please use HTML5FS.Create() method instead.
Creates a new HTML5 FileSystem-backed BrowserFS file system of the given size and storage type.
IMPORTANT: You must call allocate
on the resulting object before the file system
can be used.
storage quota to request, in megabytes. Allocated value may be less.
window.PERSISTENT or window.TEMPORARY. Defaults to PERSISTENT.
Deprecated. Please use Create() method instead to create and allocate an HTML5FS.
Requests a storage quota from the browser to back this FS. Must be called before file system can be used!
Create the file at path p with the given mode. Then, open it with the given flag.
Deletes everything in the FS. Used for testing. Karma clears the storage after you quit it but not between runs of the test suite, and the tests expect an empty FS every time.
Opens the file at path p with the given flag. The file must exist.
The path to open.
The flag to use when opening the file.
Map _readdir's list of FileEntry
s to their names and return that.
Creates an HTML5FS instance with the given options.
Generated using TypeDoc
A read-write filesystem backed by the HTML5 FileSystem API.
As the HTML5 FileSystem is only implemented in Blink, this interface is only available in Chrome.