MCPcopy Index your code
hub / github.com/angular/angular-cli / copyFile

Function copyFile

tests/e2e/utils/fs.ts:36–40  ·  view source on GitHub ↗
(from: string, to: string)

Source from the content-addressed store, hash-verified

34}
35
36export async function copyFile(from: string, to: string): Promise<void> {
37 await createDir(dirname(to));
38
39 return fs.copyFile(from, to, constants.COPYFILE_FICLONE);
40}
41
42export async function moveDirectory(from: string, to: string): Promise<void> {
43 await rimraf(to);

Callers 7

copyProjectAssetFunction · 0.90
copyAssetsFunction · 0.90
setupI18nConfigFunction · 0.90
host.tsFile · 0.85
moveDirectoryFunction · 0.85
file.tsFile · 0.85

Calls 3

createDirFunction · 0.85
copyFileMethod · 0.65
dirnameFunction · 0.50

Tested by

no test coverage detected