MCPcopy
hub / github.com/coder/mux / pathExists

Method pathExists

src/node/services/mcpConfigService.ts:38–45  ·  view source on GitHub ↗
(targetPath: string)

Source from the content-addressed store, hash-verified

36 }
37
38 private async pathExists(targetPath: string): Promise<boolean> {
39 try {
40 await fs.promises.access(targetPath, fs.constants.F_OK);
41 return true;
42 } catch {
43 return false;
44 }
45 }
46
47 private async ensureMuxRootDir(): Promise<void> {
48 if (!(await this.pathExists(this.config.rootDir))) {

Callers 2

ensureMuxRootDirMethod · 0.95
readConfigFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected