requestFileSystem
Summary
Requests a file system where data should be stored. You access a sandboxed file system by requesting a LocalFileSystem object using this global method, window.requestFileSystem().
Out of date; feature discontinued. See http://www.w3.org/TR/file-system-api.
Method of apis/filesystem/LocalFileSystemapis/filesystem/LocalFileSystem
Syntax
LocalFileSystem.requestFileSystem(type, size, successCallback, errorCallback);
Parameters
type
- Data-type
- unsigned short
Whether the filesystem requested should be persistent. Use one of TEMPORARY (0) or PERSISTENT (1).
size
- Data-type
- unsigned long
How much storage space, in bytes, the application expects to need.
successCallback
- Data-type
- String
The callback that is called when the user agent provides a filesystem.
errorCallback
- Data-type
- String
(Optional)
The callback that is called when errors happen, or when the request to obtain the filesystem is denied.
Return Value
No return value
Related specifications
- W3C File API: Directories and System Specification
- W3C Working Draft