Overview of the File System Access API
mainThe File System Access API provides web applications with capabilities similar to native applications for interacting with the local file system. It aims to increase interoperability between web and native apps by allowing users to open, edit, and save files and directories directly.
The API consists of three primary components:
- File and Directory Handles: New interfaces (intended to be named
FileSystemFileHandleandFileSystemDirectoryHandle) that represent files and directories. These are a modernized version of the existingEntryAPI. - File Writing: A modernized version of the
FileWriterinterface for saving changes to files. - Access Entry Points: Mechanisms to obtain handles for a limited view of the local file system, such as through a file picker or by accessing well-known directories.