filesystem

< apis
Jump to: navigation, search

File System API

W3C Working Draft

Summary

The File System API simulates a local file system that web apps can navigate around. You can develop apps that can read, write, and create files and directories in a virtual, sandboxed file system. The asynchronous API methods return without blocking the calling thread. The asynchronous API doesn't give you data by returning values; instead, you have to pass a callback function. The synchronous API is intended to be used with WebWorkers.


API Name Summary
DirectoryEntry This interface represents a directory on a file system.
DirectoryEntrySync This interface represents a directory on a file system.
DirectoryReader This interface lets a user list files and directories in a directory.
DirectoryReaderSync This interface lets a user list files and directories in a directory.
EntriesCallback When readEntries() succeeds, this callback is made.
Entry An abstract interface representing entries in a file system, each of which may be a File or DirectoryEntry.
EntryCallback This interface is the callback used to look up Entry objects.
EntrySync An abstract interface representing entries in a file system, each of which may be a File or DirectoryEntry.
ErrorCallback When an error occurs, this callback is made.
FileCallback This interface is the callback used to obtain a File.
FileEntry This interface represents a file on a file system.
FileEntrySync This interface represents a file on a file system.
FileSystem In the File System API, a FileSystem object represents a file system. The object is the argument of a successful callback of requestFileSystem().
FileSystemCallback When requestFileSystem() succeeds, this callback is made.
FileSystemSync In the File System API, a FileSystemSync object represents a file system.
FileWriterCallback This interface is the callback used to create a FileWriter.
LocalFileSystem The LocalFileSystem interface of the File System API gives you access to a sandboxed file system. The methods are implemented by window and worker objects.
LocalFileSystemSync The LocalFileSystemSync interface of the File System API gives you access to a sandboxed file system. It is intended to be used with WebWorkers. The methods are implemented by worker objects.
MetadataCallback This interface is the callback used to look up file and directory metadata.
VoidCallback This interface is the generic callback used to indicate success of an asynchronous method.




See also

Related articles

Off-line Storage




  • File System API