5 topics in this chapter
How file descriptors work at the OS level, the kernel's per-process file table, and Node.js fs.open internals.
23 min read
Reading and writing files in Node.js with fs.readFile, fs.writeFile, and their synchronous counterparts.
26 min read
The fs.promises API, FileHandle objects, and migrating from callbacks to async/await file operations.
29 min read
File watching with fs.watch, atomic write patterns, temp files, and safe file replacement strategies.
40 min read
File permissions, ownership, stat metadata, symlinks, and edge cases with /dev, /proc, and sparse files.
33 min read