MCPcopy Create free account
hub / github.com/Snapchat/Valdi / stat

Function stat

valdi/vscode_debugger/src/common/fsUtils.ts:43–49  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

41}
42
43export function stat(path: string): Promise<fs.Stats | undefined> {
44 return new Promise(cb => {
45 fs.stat(path, (err, stat) => {
46 return cb(err ? undefined : stat);
47 });
48 });
49}
50
51export function readdir(path: string): Promise<string[]> {
52 return new Promise(cb => {

Callers 1

createMetadataForFileFunction · 0.90

Calls 2

statMethod · 0.65
cbFunction · 0.50

Tested by

no test coverage detected