(dirPath: string)
| 549 | |
| 550 | /** Test whether a directory exists */ |
| 551 | export async function checkDirectoryExists(dirPath: string): Promise<boolean> { |
| 552 | const stats: fs.Stats | undefined = await fsStat(dirPath); |
| 553 | return !!stats && stats.isDirectory(); |
| 554 | } |
| 555 | |
| 556 | export function createDirIfNotExistsSync(filePath: string | undefined): void { |
| 557 | if (!filePath) { |