(dirPath: string)
| 141 | } |
| 142 | |
| 143 | export function isDirectoryEmptyOrMissing(dirPath: string): boolean { |
| 144 | if (!fs.existsSync(dirPath)) return true |
| 145 | |
| 146 | try { |
| 147 | return fs.readdirSync(dirPath).length === 0 |
| 148 | } catch { |
| 149 | return false |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | export function copyDirMerge( |
| 154 | src: string, |
no outgoing calls
no test coverage detected