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

Method deleteFile

src/main/base/FileSystem.ts:144–151  ·  view source on GitHub ↗
(destFilePath: string, log = true)

Source from the content-addressed store, hash-verified

142 }
143
144 deleteFile(destFilePath: string, log = true): FileSystem {
145 if(fs.existsSync(destFilePath)) {
146 if(log) console.log('Removing File: ' + destFilePath)
147 fs.unlinkSync(destFilePath)
148 }
149
150 return this
151 }
152
153 deleteFolder(folderPath: string, allowed = false, log = true): FileSystem {
154 if(!allowed) {

Callers 3

removeFileFunction · 0.80
parseJsonDataMethod · 0.80
dropCustomMethod · 0.80

Calls 1

logMethod · 0.45

Tested by

no test coverage detected