File and Directory Entries API

The File and Directory Entries API simulates a local file system that web apps can navigate within and access files in. You can develop apps which read, write, and create files and/or directories in a virtual, sandboxed file system.

Getting access to a file system

There are two ways to get access to file systems defined in the current specification draft:

Interfaces

The File and Directory Entries API includes the following interfaces:

FileSystem

Represents a file system.

FileSystemEntry

The basic interface representing a single entry in a file system. This is implemented by other interfaces which represent files or directories.

FileSystemFileEntry

Represents a single file in a file system.

FileSystemDirectoryEntry

Represents a single directory in a file system.

FileSystemDirectoryReader

Created by calling FileSystemDirectoryEntry.createReader(), this interface provides the functionality which lets you read the contents of a directory.

Specifications

Specification
File and Directory Entries API
# api-domfilesystem

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
FileSystem
name
root

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
See implementation notes.

See also