(path: string)
| 78 | }; |
| 79 | |
| 80 | export const isPathExists = async (path: string) => { |
| 81 | try { |
| 82 | await fsp.access(path); |
| 83 | return true; |
| 84 | } catch { |
| 85 | return false; |
| 86 | } |
| 87 | }; |
| 88 | |
| 89 | |
| 90 | export const writeFile = async (filePath: string, data: string) => { |