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

Method cd

daemon/src/service/system_file.ts:114–117  ·  view source on GitHub ↗
(dirName: string)

Source from the content-addressed store, hash-verified

112 }
113
114 cd(dirName: string) {
115 if (!this.check(dirName)) throw new Error(ERROR_MSG_01);
116 this.cwd = normalizedJoin(this.cwd, dirName);
117 }
118
119 async list(page: 0, pageSize = 40, searchFileName?: string) {
120 if (pageSize > 100 || pageSize <= 0 || page < 0) throw new Error("Beyond the value limit");

Callers 1

file_router.tsFile · 0.80

Calls 2

checkMethod · 0.95
normalizedJoinFunction · 0.90

Tested by

no test coverage detected