(p: string)
| 26 | } |
| 27 | |
| 28 | export async function statAsync(p: string): Promise<ReturnType<typeof statSync> | undefined> { |
| 29 | return statFile(p).catch((e) => { |
| 30 | if (isEnoent(e)) return undefined |
| 31 | throw e |
| 32 | }) |
| 33 | } |
| 34 | |
| 35 | export async function size(p: string): Promise<number> { |
| 36 | const s = stat(p)?.size ?? 0 |
nothing calls this directly
no test coverage detected