(err: unknown)
| 143 | * reports ENOENT for both). |
| 144 | */ |
| 145 | export function isMissingPathError(err: unknown): boolean { |
| 146 | const code = (err as NodeJS.ErrnoException | null)?.code; |
| 147 | return code === 'ENOENT' || code === 'ENOTDIR'; |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Validate that a file path stays within the project root, resolving symlinks. |
no outgoing calls
no test coverage detected