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

Function getFileManager

daemon/src/service/file_router_service.ts:7–14  ·  view source on GitHub ↗
(instanceUuid: string)

Source from the content-addressed store, hash-verified

5import os from "os";
6
7export function getFileManager(instanceUuid: string) {
8 // Initialize a file manager for the instance, and assign codes, restrictions, etc.
9 const instance = InstanceSubsystem.getInstance(instanceUuid);
10 if (!instance)
11 throw new Error($t("TXT_CODE_file_router_service.instanceNotExit", { uuid: instanceUuid }));
12 const fileCode = instance.config?.fileCode;
13 return new FileManager(instance.absoluteCwdPath(), fileCode);
14}
15
16let cacheDisks: string[] = [];
17

Callers 2

onStartMethod · 0.90
file_router.tsFile · 0.90

Calls 3

$tFunction · 0.90
absoluteCwdPathMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected