(dirPath: string)
| 85 | // validators, and pathIsFile has no FileSystemUtils equivalent - the |
| 86 | // silent symmetric pair lives here. |
| 87 | export async function pathIsDirectory(dirPath: string): Promise<boolean> { |
| 88 | try { |
| 89 | return (await fs.stat(dirPath)).isDirectory(); |
| 90 | } catch { |
| 91 | return false; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | async function sleep(milliseconds: number): Promise<void> { |
| 96 | await new Promise((resolve) => setTimeout(resolve, milliseconds)); |
no outgoing calls
no test coverage detected