MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / touch

Function touch

apps/desktop/scripts/after-pack-prune.test.mjs:7–10  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

5import afterPackPrune from './after-pack-prune.cjs';
6
7async function touch(file) {
8 await mkdir(path.dirname(file), { recursive: true });
9 await writeFile(file, 'x');
10}
11
12async function exists(file) {
13 try {

Callers 1

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected