MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / touch

Function touch

src/workspaces/agent-detect.spec.ts:11–16  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

9let dir: string;
10
11async function touch(name: string): Promise<string> {
12 const p = join(dir, name);
13 await writeFile(p, '');
14 await chmod(p, 0o755);
15 return p;
16}
17
18beforeEach(async () => {
19 dir = await mkdtemp(join(tmpdir(), 'agent-detect-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected