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

Method absoluteCwdPath

daemon/src/entity/instance/instance.ts:484–488  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482 }
483
484 absoluteCwdPath() {
485 if (!this.config || !this.config.cwd) throw new Error("Instance config error, cwd is Null!");
486 if (path.isAbsolute(this.config.cwd)) return path.normalize(this.config.cwd);
487 return path.normalize(path.join(process.cwd(), this.config.cwd));
488 }
489
490 // execute the preset command action
491 async execPreset(action: IPresetCommand, p?: any) {

Callers 15

parseTextParamsMethod · 0.95
getFileManagerFunction · 0.80
checkInstanceDiskSizeMethod · 0.80
listModsMethod · 0.80
toggleModMethod · 0.80
deleteModMethod · 0.80
installModMethod · 0.80
getModConfigMethod · 0.80
onStartMethod · 0.80
removeInstanceMethod · 0.80
onStartMethod · 0.80
downloadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected