(src: string, dest: string)
| 140 | * Copy a file |
| 141 | */ |
| 142 | export async function copyFile(src: string, dest: string): Promise<void> { |
| 143 | const destExpanded = expandHome(dest); |
| 144 | await fse.ensureDir(path.dirname(destExpanded)); |
| 145 | await fse.copy(expandHome(src), destExpanded, { overwrite: true }); |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * List directories in a path (non-recursive, only directories) |
no test coverage detected