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

Method copyStaticFile

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

Source from the content-addressed store, hash-verified

49 }
50
51 copyStaticFile(filePath: string, destFilePath: string, manipulationCallback: any = null) {
52 const staticPath = path.join(app.getAppPath(), 'static'),
53 localFilePath = path.join(staticPath, filePath)
54
55 this.copyFile(localFilePath, destFilePath, manipulationCallback)
56 }
57
58 copyFile(filePath: string, destFilePath: string, manipulationCallback: any = null): FileSystem {
59 let content = this.readFile(filePath)

Callers

nothing calls this directly

Calls 2

copyFileMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected