MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / tryRemoveQuiet

Function tryRemoveQuiet

scripts/build-win.js:22–29  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

20}
21
22function tryRemoveQuiet(p) {
23 if (!fs.existsSync(p)) return;
24 try {
25 fs.rmSync(p, { recursive: true, force: true, maxRetries: 5, retryDelay: 250 });
26 } catch (_) {
27 /* locked — build still works via staging */
28 }
29}
30
31if (!fs.existsSync(distDir)) {
32 fs.mkdirSync(distDir, { recursive: true });

Callers 1

build-win.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected