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

Method existsSync

lib/internal/vfs/provider.js:371–378  ·  view source on GitHub ↗

* Checks if a path exists synchronously. * @param {string} path The path to check * @returns {boolean}

(path)

Source from the content-addressed store, hash-verified

369 * @returns {boolean}
370 */
371 existsSync(path) {
372 try {
373 this.statSync(path);
374 return true;
375 } catch {
376 return false;
377 }
378 }
379
380 /**
381 * Copies a file.

Callers 15

copyFileSyncMethod · 0.95
existsFunction · 0.45
existsSyncFunction · 0.45
findVFSForExistsFunction · 0.45
findVFSWithFunction · 0.45
openAsBlobFunction · 0.45
calibrate-n.jsFile · 0.45
constructorMethod · 0.45
ensureFixtureLibraryFunction · 0.45
mainFunction · 0.45
loadLogFileFunction · 0.45
cache.jsFile · 0.45

Calls 1

statSyncMethod · 0.95

Tested by

no test coverage detected