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

Function pathExists

lib/internal/fs/cp/cp.js:148–153  ·  view source on GitHub ↗
(dest)

Source from the content-addressed store, hash-verified

146}
147
148function pathExists(dest) {
149 return PromisePrototypeThen(
150 stat(dest),
151 () => true,
152 (err) => (err.code === 'ENOENT' ? false : PromiseReject(err)));
153}
154
155// Recursively check if dest parent is a subdirectory of src.
156// It works for all file types including symlinks since it

Callers 1

checkParentDirFunction · 0.85

Calls 1

statFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…