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

Method check

daemon/src/service/system_file.ts:107–112  ·  view source on GitHub ↗
(destPath: string)

Source from the content-addressed store, hash-verified

105 }
106
107 check(destPath: string) {
108 if (this.isRootTopRath()) return true;
109 if (!this.checkPath(destPath)) return false;
110 if (!fs.existsSync(this.toAbsolutePath(destPath))) return false;
111 return true;
112 }
113
114 cd(dirName: string) {
115 if (!this.check(dirName)) throw new Error(ERROR_MSG_01);

Callers 14

cdMethod · 0.95
chmodMethod · 0.95
readFileMethod · 0.95
writeFileMethod · 0.95
copyMethod · 0.95
deleteMethod · 0.95
moveMethod · 0.95
unzipMethod · 0.95
zipMethod · 0.95
editMethod · 0.95
renameMethod · 0.95
checkFileMethod · 0.80

Calls 3

isRootTopRathMethod · 0.95
checkPathMethod · 0.95
toAbsolutePathMethod · 0.95

Tested by

no test coverage detected