Expand description
Node fs module: synchronous file operations, the async callback forms, and
the file-descriptor / directory / stream / watcher surfaces.
Path operations map straight onto std::fs; descriptor operations
(open/read/write/fstat/…) keep a thread-local table of open
std::fs::Files keyed by a synthetic integer fd (starting at 3, after the
stdio fds). Ownership / timestamp / statvfs operations that std::fs does not
cover use libc directly (all targets are unix). Async callback variants run
the same synchronous work then schedule the callback as a microtask, matching
Node’s ordering for simple scripts.
Constants§
Functions§
- call
- dir_
call fs.Dirmethod dispatch (tagDir);pathis a plain data property.- dirent_
call fs.Direntmethod dispatch (tagDirent);name/parentPath/pathare plain data properties resolved by the generic object path.- read_
stream_ call fs.ReadStreaminstance dispatch (tagFSReadStream). Emitter methods are handled by the parent’s shared emitter routing; this covers the stream-only surface.- stats_
call fs.Statsmethod dispatch (isFile/isDirectory/…).- write_
stream_ call fs.WriteStreaminstance dispatch (tagFSWriteStream).