node:fs

Node's filesystem module, with the APIs Elide leaves out.

node:fs, node:fs/promises, and fs.promises match Node, including glob, cp, statfs, opendir, and watch.

Differences from Node

  • lchmod exists only in fs/promises; it has no callback or sync form.
  • fs.openAsBlob is not available.
  • Access is unrestricted until --sandbox, --allow-read, --allow-write, or --fs-audit is set; see Sandbox.