MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / copyFile

Method copyFile

src/main/base/FileSystem.ts:58–66  ·  view source on GitHub ↗
(filePath: string, destFilePath: string, manipulationCallback: any = null)

Source from the content-addressed store, hash-verified

56 }
57
58 copyFile(filePath: string, destFilePath: string, manipulationCallback: any = null): FileSystem {
59 let content = this.readFile(filePath)
60
61 if(manipulationCallback) content = manipulationCallback(content)
62
63 this.writeFile(destFilePath, content)
64
65 return this
66 }
67
68 writeProjectFile(projectPath: string, filePath: string, content: string, log = true): FileSystem {
69 const projectFilePath = path.join(projectPath, filePath),

Callers 3

copyStaticFileMethod · 0.95
upgradeCustomTemplateMethod · 0.80

Calls 2

readFileMethod · 0.95
writeFileMethod · 0.95

Tested by

no test coverage detected