liveBook · Manning

Filesystem API

Also called file API, file system API

A filesystem API is a programming interface for accessing or managing files, directories, paths, or related file-backed data.

How 2 Manning books explain it

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.

Read how HTML5 in Action explains filesystem API →

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.

Read how The Joy of JavaScript explains filesystem API →

Also covered in

Related concepts

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.