(resolvedPath: string)
| 97 | ); |
| 98 | } |
| 99 | |
| 100 | const stat = fs.statSync(resolvedPath); |
| 101 | if (!stat.isDirectory()) { |
| 102 | throw new ValidationError( |
| 103 | `Project path is not a directory: ${resolvedPath}` |
| 104 | ); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | async function assertDirectoryIsEmpty(resolvedPath: string): Promise<void> { |
| 109 | const entries = await fsPromises.readdir(resolvedPath); |
no outgoing calls
no test coverage detected