MCPcopy Index your code
hub / github.com/coder/mux / createTempDir

Function createTempDir

src/node/multiProject/gitRootDiscovery.test.ts:10–14  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

8const tempDirsToClean: string[] = [];
9
10async function createTempDir(prefix: string): Promise<string> {
11 const dirPath = await fs.mkdtemp(path.join(os.tmpdir(), prefix));
12 tempDirsToClean.push(dirPath);
13 return dirPath;
14}
15
16function initGitRepo(repoPath: string): void {
17 execSync("git init", { cwd: repoPath, stdio: "ignore" });

Callers 1

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected