FileSystemSync
非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!
已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。
在文件与目录条目 API 中, FileSystemSync
对象表示文件系统。它有两个属性。
警告: 该接口已被弃用且不再被标准化轨道追踪。请不要再继续使用。请使用文件系统 API 代替。
关于这个文档
这个文档最后更新与 2012 年 3 月 2 日,并且遵循 W3C 规范(工作草案),起草于 2011 年 4 月 19 日。
规范目前已废弃,没有得到大量的关注。
基本概念
FileSystemSync
对象是整个 API 的必经之路,你会大量使用它。所以一旦你获得了引用,将对象缓存在全局变量或类属性中。
属性
Attribute | Type | Description |
---|---|---|
name |
只读 DOMString |
文件系统的名称。名称在开放的文件系统列表中必须是唯一的。 |
root |
只读 DirectoryEntry |
文件系统的根目录。 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
FileSystemSync | ||||||||||||
name | ||||||||||||
root |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.