MCPcopy Create free account
hub / github.com/GCWing/BitFun / ensureCleanDir

Function ensureCleanDir

BitFun-Installer/scripts/build-installer.cjs:91–96  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

89}
90
91function ensureCleanDir(dir) {
92 if (fs.existsSync(dir)) {
93 fs.rmSync(dir, { recursive: true, force: true });
94 }
95 fs.mkdirSync(dir, { recursive: true });
96}
97
98function sha256File(filePath) {
99 const content = fs.readFileSync(filePath);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected