File System API guide

Experimental

这是一个实验中的功能
此功能某些浏览器尚在开发中,请参考浏览器兼容性表格以得到在不同浏览器中适合使用的前缀。由于该功能对应的标准文档可能被重新修订,所以在未来版本的浏览器中该功能的语法和行为可能随之改变。

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