非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

文件系统 API FileSystemSync object represents a file system. It has two properties.

关于本文档

This document was last updated on March 2, 2012 and follows the W3C Specifications (Working Draft) drafted on April 19, 2011.

The specification is abandonned for the moment, failing to get significant traction.

基本概念

FileSystemSync object is your gateway to the entire API and you will use it a lot. So once you have a reference, cache the object in a global variable or class property.

属性

属性 类型 描述
名称 readonly DOMString Name of the file system. The name must be unique across the list of exposed file systems.
root readonly DirectoryEntry The root directory of the file system.

浏览器兼容性

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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
FileSystemSync 非标 Chrome 13 Prefixed
13 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge ≤79 Prefixed
≤79 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Firefox No IE No Opera 15 Prefixed
15 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Safari 6 Prefixed
6 Prefixed
Prefixed Implemented with the vendor prefix: webkit
WebView Android ≤37 Prefixed
≤37 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Chrome Android 18 Prefixed
18 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Firefox Android No Opera Android 14 Prefixed
14 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Safari iOS 6 Prefixed
6 Prefixed
Prefixed Implemented with the vendor prefix: webkit
Samsung Internet Android 1.0 Prefixed
1.0 Prefixed
Prefixed Implemented with the vendor prefix: webkit
名称 非标 Chrome 13 Edge ≤79 Firefox No IE No Opera 15 Safari 6 WebView Android ≤37 Chrome Android 18 Firefox Android No Opera Android 14 Safari iOS 6 Samsung Internet Android 1.0
root 非标 Chrome 13 Edge ≤79 Firefox No IE No Opera 15 Safari 6 WebView Android ≤37 Chrome Android 18 Firefox Android No Opera Android 14 Safari iOS 6 Samsung Internet Android 1.0

图例

完整支持

完整支持

不支持

不支持

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

要求使用供应商前缀或不同名称。

要求使用供应商前缀或不同名称。

另请参阅

规范: File API: Directories and System Specification WD

参考: 文件系统 API

介绍: Basic Concepts About the File System API

元数据

  • 最后修改: