(error: unknown)
| 161 | } |
| 162 | |
| 163 | function isNotFound(error: unknown): boolean { |
| 164 | return ( |
| 165 | typeof error === 'object' && |
| 166 | error !== null && |
| 167 | (error as NodeJS.ErrnoException).code === 'ENOENT' |
| 168 | ) |
| 169 | } |
| 170 | |
| 171 | async function assertPrivateCapabilityDir(dir: string): Promise<void> { |
| 172 | let stat: Awaited<ReturnType<typeof lstat>> |
no outgoing calls
no test coverage detected