CHAPTER 04

File System

Every subchapter in this chapter, free to read online. Work through them in order, or jump straight to the runtime detail you need.

04
chapter
5
subchapters
Free
online
01
Subchapter

File Descriptors & Handles

How file descriptors and FileHandle objects map to OS file state, open flags, close behavior, libuv work, and EMFILE failures.

02
Subchapter

File I/O

How Node.js reads and writes files through whole-file helpers, streams, low-level read/write calls, append mode, and durable flushes.

03
Subchapter

fs.promises & FileHandle

How fs.promises and FileHandle work in Node.js, including async file operations, descriptor ownership, stream lifecycles, cleanup, and controlled concurrency.

04
Subchapter

fs.watch & Atomic Writes

How fs.watch, fs.watchFile, OS watcher backends, and atomic replacement patterns interact in real file workflows.

05
Subchapter

Permissions & Metadata

How Node.js exposes file permissions, ownership, stat metadata, symlinks, inodes, sparse files, special paths, and filesystem edge cases.

Other chapters

13 more