(filePath: string | undefined)
| 554 | } |
| 555 | |
| 556 | export function createDirIfNotExistsSync(filePath: string | undefined): void { |
| 557 | if (!filePath) { |
| 558 | return; |
| 559 | } |
| 560 | const dirPath: string = path.dirname(filePath); |
| 561 | if (!checkDirectoryExistsSync(dirPath)) { |
| 562 | fs.mkdirSync(dirPath, { recursive: true }); |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | export function checkFileExistsSync(filePath: string): boolean { |
| 567 | try { |
nothing calls this directly
no test coverage detected