(path: string)
| 3 | import type { Stats } from 'node:fs' |
| 4 | |
| 5 | export function fsExists(path: string): Promise<boolean> { |
| 6 | return access(path).then( |
| 7 | () => true, |
| 8 | () => false, |
| 9 | ) |
| 10 | } |
| 11 | |
| 12 | export function fsStat(path: string): Promise<Stats | null> { |
| 13 | return stat(path).catch(() => null) |
no outgoing calls
no test coverage detected
searching dependent graphs…