(targetPath)
| 53 | } |
| 54 | |
| 55 | export async function isDirectory(targetPath) { |
| 56 | try { |
| 57 | const stats = await fs.stat(targetPath); |
| 58 | return stats.isDirectory(); |
| 59 | } catch { |
| 60 | return false; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | export async function isFile(targetPath) { |
| 65 | try { |
no test coverage detected