(filePath: string)
| 768 | }); |
| 769 | |
| 770 | async function fileExists(filePath: string): Promise<boolean> { |
| 771 | try { |
| 772 | await fs.access(filePath); |
| 773 | return true; |
| 774 | } catch { |
| 775 | return false; |
| 776 | } |
| 777 | } |
| 778 | |
| 779 | async function directoryExists(dirPath: string): Promise<boolean> { |
| 780 | try { |