(dirPath: string)
| 54 | } |
| 55 | |
| 56 | async function ensureDirExists(dirPath: string) { |
| 57 | try { |
| 58 | await fs.mkdir(dirPath, { recursive: true }); |
| 59 | } catch (e) { |
| 60 | if ((e as { code: string }).code === 'EEXIST') { |
| 61 | return;// ignore existing error |
| 62 | } |
| 63 | throw e; |
| 64 | } |
| 65 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…