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

Function statfsSync

lib/internal/vfs/setup.js:275–287  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

273 return undefined;
274 },
275 statfsSync(path, options) {
276 const pathStr = toPathStr(path);
277 if (pathStr !== null && findVFSForPath(pathStr) !== null) {
278 if (options?.bigint) {
279 return {
280 type: 0n, bsize: 4096n, blocks: 0n,
281 bfree: 0n, bavail: 0n, files: 0n, ffree: 0n,
282 };
283 }
284 return { type: 0, bsize: 4096, blocks: 0, bfree: 0, bavail: 0, files: 0, ffree: 0 };
285 }
286 return undefined;
287 },
288
289 // ==================== Sync path-based write ops ====================
290

Callers

nothing calls this directly

Calls 2

toPathStrFunction · 0.85
findVFSForPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…