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

Function existsSync

lib/internal/vfs/setup.js:184–189  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

182 // ==================== Sync path-based read ops ====================
183
184 existsSync(path) {
185 const pathStr = toPathStr(path);
186 if (pathStr === null) return undefined;
187 const r = findVFSForExists(pathStr);
188 return r !== null ? r.exists : undefined;
189 },
190 readFileSync(path, options) {
191 if (typeof path === 'number') {
192 const vfd = getVirtualFd(path);

Callers

nothing calls this directly

Calls 2

toPathStrFunction · 0.85
findVFSForExistsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…