node:fs, node:fs/promises, and fs.promises match Node, including glob, cp, statfs, opendir, and watch.
Differences from Node
lchmodexists only infs/promises; it has no callback or sync form.fs.openAsBlobis not available.- Access is unrestricted until
--sandbox,--allow-read,--allow-write, or--fs-auditis set; see Sandbox.