(filePath: string)
| 21 | }); |
| 22 | |
| 23 | async function checkFileExists(filePath: string): Promise<boolean> { |
| 24 | try { |
| 25 | await Deno.stat(filePath); |
| 26 | return true; |
| 27 | } catch (error) { |
| 28 | if (error instanceof Deno.errors.NotFound) { |
| 29 | return false; |
| 30 | } else { |
| 31 | throw error; |
| 32 | } |
| 33 | } |
| 34 | } |
no test coverage detected