MCPcopy
hub / github.com/meteor/meteor / statOrNull

Function statOrNull

tools/fs/files.ts:306–308  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

304
305// Like statSync, but null if file not found
306export function statOrNull(path: string) {
307 return statOrNullHelper(path, false);
308}
309
310function statOrNullHelper(path: string, preserveSymlinks = false) {
311 try {

Callers 8

installFunction · 0.90
optimistic.tsFile · 0.90
startNewWatcherFunction · 0.90
mkdir_pFunction · 0.70
pathIsDirectoryFunction · 0.70
existsFunction · 0.70
copyFileFunction · 0.70

Calls 1

statOrNullHelperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…