MCPcopy Index your code
hub / github.com/nodejs/node / open

Function open

lib/internal/vfs/setup.js:635–640  ·  view source on GitHub ↗
(path, flags, mode)

Source from the content-addressed store, hash-verified

633 utimes: (path, atime, mtime) =>
634 vfsOp(path, (vfs, n) => vfs.promises.utimes(n, atime, mtime).then(() => true)),
635 open(path, flags, mode) {
636 // openSync is synchronous, so an error thrown by the provider would
637 // escape via fs.open's caller (instead of going through the callback).
638 // Catch it here and surface as a rejected promise.
639 return vfsOp(path, async (vfs, n) => vfs.openSync(n, flags, mode));
640 },
641 promisesOpen(path, flags, mode) {
642 const pathStr = toPathStr(path);
643 if (pathStr !== null) {

Callers

nothing calls this directly

Calls 2

vfsOpFunction · 0.85
openSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…