(instanceUuid: string)
| 5 | import os from "os"; |
| 6 | |
| 7 | export 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 | |
| 16 | let cacheDisks: string[] = []; |
| 17 |
no test coverage detected