MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / notRegularFile

Function notRegularFile

src/file-limits.ts:60–62  ·  view source on GitHub ↗

What a name that isn't a regular file throws: to every caller, a file that can't be read.

(file: string)

Source from the content-addressed store, hash-verified

58
59/** What a name that isn't a regular file throws: to every caller, a file that can't be read. */
60function notRegularFile(file: string): NodeJS.ErrnoException {
61 return Object.assign(new Error(`ENOTSUP: not a regular file, open '${file}'`), { code: 'ENOTSUP', syscall: 'open', path: file });
62}
63
64/**
65 * `fs.readFileSync` for a file found by its name: a manifest, an ignore file,

Callers 2

readRegularFileSyncFunction · 0.85
writeRegularFileSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected