What a name that isn't a regular file throws: to every caller, a file that can't be read.
(file: string)
| 58 | |
| 59 | /** What a name that isn't a regular file throws: to every caller, a file that can't be read. */ |
| 60 | function 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, |
no outgoing calls
no test coverage detected