MCPcopy Create free account
hub / github.com/Tencent/teamai-cli / copyFile

Function copyFile

src/utils/fs.ts:142–146  ·  view source on GitHub ↗
(src: string, dest: string)

Source from the content-addressed store, hash-verified

140 * Copy a file
141 */
142export 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)

Callers 6

executePruneFunction · 0.85
syncRulesToLocalFunction · 0.85
pushItemMethod · 0.85
pullLegacyMdMethod · 0.85
pushItemMethod · 0.85
pullItemMethod · 0.85

Calls 1

expandHomeFunction · 0.85

Tested by

no test coverage detected