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

Method openSync

lib/internal/vfs/provider.js:76–78  ·  view source on GitHub ↗

* Opens a file synchronously and returns a file handle. * @param {string} path The file path (relative to provider root) * @param {string} flags The open flags ('r', 'r+', 'w', 'w+', 'a', 'a+') * @param {number} [mode] The file mode (for creating files) * @throws {ERR_METHOD_NOT_IMPLEMEN

(path, flags, mode)

Source from the content-addressed store, hash-verified

74 * @throws {ERR_METHOD_NOT_IMPLEMENTED} When not implemented by subclass
75 */
76 openSync(path, flags, mode) {
77 throw new ERR_METHOD_NOT_IMPLEMENTED('openSync');
78 }
79
80 /**
81 * Gets stats for a path.

Callers 15

readFileSyncMethod · 0.95
writeFileSyncMethod · 0.95
appendFileSyncMethod · 0.95
readFileSyncFunction · 0.45
openSyncFunction · 0.45
truncateSyncFunction · 0.45
lchmodSyncFunction · 0.45
writeFileSyncFunction · 0.45
openFileFunction · 0.45
createVfsHandlersFunction · 0.45
openFunction · 0.45
promisesOpenFunction · 0.45

Calls

no outgoing calls

Tested by 2

testFunction · 0.36
testFunction · 0.36