FileSystemSync

非标
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

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

About this document

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.

属性

属性 Type 描述
name 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.

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
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
name
非标
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

图例

完整支持
完整支持
不支持
不支持
非标。预期跨浏览器支持较差。
非标。预期跨浏览器支持较差。
要求使用供应商前缀或不同名称。
要求使用供应商前缀或不同名称。

另请参阅

Specification: File API: Directories and System Specification WD

Reference: 文件系统 API

Introduction: Basic Concepts About the File System API