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

Method mkdir

daemon/src/service/system_file.ts:237–241  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

235 }
236
237 mkdir(target: string) {
238 if (!this.checkPath(target)) throw new Error(ERROR_MSG_01);
239 const targetPath = this.toAbsolutePath(target);
240 return fs.mkdirSync(targetPath, { recursive: true });
241 }
242
243 async delete(target: string): Promise<boolean> {
244 if (!this.check(target)) throw new Error(ERROR_MSG_01);

Callers 2

newFileMethod · 0.80
file_router.tsFile · 0.80

Calls 2

checkPathMethod · 0.95
toAbsolutePathMethod · 0.95

Tested by

no test coverage detected