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

Method exists

lib/internal/vfs/provider.js:357–364  ·  view source on GitHub ↗

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

(path)

Source from the content-addressed store, hash-verified

355 * @returns {Promise<boolean>}
356 */
357 async exists(path) {
358 try {
359 await this.stat(path);
360 return true;
361 } catch {
362 return false;
363 }
364 }
365
366 /**
367 * Checks if a path exists synchronously.

Callers 15

copyFileMethod · 0.95
run_gypFunction · 0.45
extract_zipFunction · 0.45
mainFunction · 0.45
run-valgrind.pyFile · 0.45
RepositoryNameMethod · 0.45
CheckHeaderFileIncludedFunction · 0.45
get_default_out_dirFunction · 0.45
ExecPackageFrameworkMethod · 0.45

Calls 1

statMethod · 0.95

Tested by 2

testFunction · 0.36
testFunction · 0.36