Chapter Index
File System
5 topics in this chapter
5Topics
01
Topic
File Descriptors & Handles
How file descriptors and FileHandle objects map to OS file state, open flags, close behavior, libuv work, and EMFILE failures.
nodejsfile-systemfile-descriptorsfsposix
23 min read
02Topic
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.
nodejsfile-systemfsreadFilewriteFile
31 min read
03Topic
fs.promises & FileHandle
How fs.promises and FileHandle work in Node.js, including async file operations, descriptor ownership, stream lifecycles, cleanup, and controlled concurrency.
nodejsfile-systemfs-promisesFileHandleasync-await
29 min read
04Topic
fs.watch & Atomic Writes
How fs.watch, fs.watchFile, OS watcher backends, and atomic replacement patterns interact in real file workflows.
nodejsfile-systemfs-watchatomic-writesinotify
45 min read
05Topic
Permissions & Metadata
How Node.js exposes file permissions, ownership, stat metadata, symlinks, inodes, sparse files, special paths, and filesystem edge cases.
nodejsfile-systempermissionsstatsymlinksmetadata
36 min read