MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / dirExists

Method dirExists

openlist/openlist.ts:845–854  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

843 return map[nodeArch] || null;
844 }
845
846 private async runOpenListCommand(installPath: string, args: string[]): Promise<string> {
847 const executable = path.join(installPath, "openlist");
848 try {
849 const { stdout, stderr } = await execFileAsync(executable, args, {
850 cwd: installPath,
851 encoding: "utf-8",
852 timeout: 30_000,
853 maxBuffer: 4 * 1024 * 1024,
854 windowsHide: true,
855 });
856 return `${String(stdout || "")}${String(stderr || "")}`;
857 } catch (error: unknown) {

Callers 2

handleBackupMethod · 0.95
handleRestoreMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected