This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.
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
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Asynchronous API | 13 webkit | Not supported | Not supported | 15 webkit | Not supported |
| Synchronous API | 13 webkit | Not supported | Not supported | 15 webkit | Not supported |
| Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Asynchronous API | Not supported | 0.16webkit | Not supported | Not supported | 14 webkit | Not supported |
| Synchronous API | Not supported | 0.16webkit | Not supported | Not supported | 14 webkit | Not supported |
See also
- File System API reference
- Specification: File API: Directories and System SpecificationWD