File System API guide



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 inside WebWorkers.

For an overview of the File System API, see the following articles:

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Asynchronous API 13 webkit (en-US) 未实现 未实现 15 webkit (en-US) 未实现
Synchronous API 13 webkit (en-US) 未实现 未实现 15 webkit (en-US) 未实现
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Asynchronous API 未实现 0.16webkit (en-US) 未实现 未实现 14 webkit (en-US) 未实现
Synchronous API 未实现 0.16webkit (en-US) 未实现 未实现 14 webkit (en-US) 未实现

See also