(filePath: string)
| 73 | } |
| 74 | |
| 75 | export async function pathIsFile(filePath: string): Promise<boolean> { |
| 76 | try { |
| 77 | return (await fs.stat(filePath)).isFile(); |
| 78 | } catch { |
| 79 | return false; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | // Deliberately not FileSystemUtils.directoryExists: that variant |
| 84 | // debug-logs non-ENOENT failures, which is noise inside prompt |
no outgoing calls
no test coverage detected