(destPath)
| 87 | }; |
| 88 | |
| 89 | const checkDestDir = (destPath) => { |
| 90 | const dir = path.dirname(destPath); |
| 91 | |
| 92 | if (!fs.existsSync(dir)) { |
| 93 | // console.info(`Create empty dir: ${dir}`); |
| 94 | fs.mkdirSync(dir, { recursive: true }); |
| 95 | } |
| 96 | }; |
| 97 | |
| 98 | export const copySingleFileSync = (srcPath, destPath) => { |
| 99 | checkDestDir(destPath); |
no outgoing calls
no test coverage detected