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

Method copyFolder

src/main/base/FileSystem.ts:134–142  ·  view source on GitHub ↗
(templateFolder: string, destinationFolder: string)

Source from the content-addressed store, hash-verified

132
133
134 copyFolder(templateFolder: string, destinationFolder: string): boolean {
135 console.log('Copying Folder: ' + templateFolder + ' to ' + destinationFolder)
136 const result = shell.cp('-R', templateFolder, destinationFolder)
137
138 // set the folder to be writable
139 this.fixPermissions(destinationFolder)
140
141 return result.code === 0
142 }
143
144 deleteFile(destFilePath: string, log = true): FileSystem {
145 if(fs.existsSync(destFilePath)) {

Callers 2

copyFolderIfNotExistsMethod · 0.95
HandleIpcMessagesFunction · 0.80

Calls 2

fixPermissionsMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected