Filesystem API
A filesystem API is a programming interface for accessing or managing files, directories, paths, or related file-backed data.
HTML5 in Action
The File API is a web platform interface for accessing information about files selected by a user.
- How it is used
- Provides a client-side sandbox for storing and managing files in an HTML editor.
- How deep it goes
- Explains sandbox security and persistence, then outlines filesystem and quota setup while deferring retrieval and display functions.
- Examples
- Uses an HTML editor that creates, imports, edits, deletes, and exports files in a local sandbox.
- What you can do after
- Operate/configure a persistent client-side filesystem and request a storage quota for an editor.
The Joy of JavaScript
An interface exposed by a runtime or operating system for reading, writing, and managing files and directories.
- How it is used
- Handles filesystem I/O in JavaScript applications, especially asynchronous workflows that must avoid blocking the main thread.
- How deep it goes
- Compares synchronous, callback, promisified, and native Promise forms, then demonstrates a chained file-processing workflow.
- Examples
- Uses readFileSync, readFile, fs.promises.readFile, util.promisify, and a countBlocksInFile processing pipeline.
- What you can do after
- Apply it via Node.js fs APIs to read files without blocking and compose subsequent processing with promises.
Also covered in
- Vanilla WebIn early access (MEAP)
- Grokking Web Application Security
Related concepts
- getFilehas part · getFile is a File System API method for retrieving or creating a file entry according to supplied options.
- file descriptorproduces · A file descriptor is an operating-system identifier for an open file, socket, pipe, or other input-output resource.
- File Writer APIuses · The File Writer API is a web platform interface for writing data to files.
- JavaScriptuses · JavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Questions about filesystem API
What is filesystem API?
A filesystem API is a programming interface for accessing or managing files, directories, paths, or related file-backed data.
Which Manning books explain filesystem API?
HTML5 in Action and The Joy of JavaScript.
What are the parts of filesystem API?
Filesystem API includes getFile and readAsText.
What is filesystem API also called?
Filesystem API is also called file API or file system API.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

