(kaos: Kaos, path: string)
| 168 | } |
| 169 | |
| 170 | async function pathExists(kaos: Kaos, path: string): Promise<boolean> { |
| 171 | try { |
| 172 | await kaos.stat(path); |
| 173 | return true; |
| 174 | } catch { |
| 175 | return false; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | async function isFile(kaos: Kaos, path: string): Promise<boolean> { |
| 180 | try { |