MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / deleteFile

Method deleteFile

common/src/system_storage.ts:34–37  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

32 }
33
34 public deleteFile(name: string) {
35 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, name));
36 fs.removeSync(targetPath);
37 }
38
39 public fileExists(name: string) {
40 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, name));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected