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

Function createWorkspaceDir

src/node/multiProject/containerManager.test.ts:24–36  ·  view source on GitHub ↗
(
    projectName: string,
    markerContent: string
  )

Source from the content-addressed store, hash-verified

22 });
23
24 async function createWorkspaceDir(
25 projectName: string,
26 markerContent: string
27 ): Promise<ProjectWorkspaceEntry> {
28 const workspacePath = path.join(rootDir, `${projectName}-workspace`);
29 await fs.mkdir(workspacePath, { recursive: true });
30 await fs.writeFile(path.join(workspacePath, "marker.txt"), markerContent, "utf8");
31
32 return {
33 projectName,
34 workspacePath,
35 };
36 }
37
38 it("createContainer creates symlinks to each project workspace", async () => {
39 const projectWorkspaces = [

Callers 1

Calls 1

writeFileMethod · 0.65

Tested by

no test coverage detected