(path: string)
| 459 | } |
| 460 | |
| 461 | export const isFile = async (path: string): Promise<boolean> => { |
| 462 | try { |
| 463 | const stat = await fs.stat(path) |
| 464 | return stat.isFile() |
| 465 | } catch (error) { |
| 466 | return false |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | export const isDirectory = async (path: string): Promise<boolean> => { |
| 471 | try { |