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

Function directoryExists

test/fixtures/snapshot/typescript.js:7463–7465  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

7461 return fileSystemEntryExists(path, 0 /* FileSystemEntryKind.File */);
7462 }
7463 function directoryExists(path) {
7464 return fileSystemEntryExists(path, 1 /* FileSystemEntryKind.Directory */);
7465 }
7466 function getDirectories(path) {
7467 return getAccessibleFileSystemEntries(path).directories.slice();
7468 }

Callers 4

updateChildWatchesFunction · 0.85
ensureDirectoriesExistFunction · 0.85
writeFileFunction · 0.85

Calls 4

fileSystemEntryExistsFunction · 0.85
toPathFunction · 0.85
hasMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…