MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / cleanDir

Function cleanDir

scripts/build.js:19–24  ·  view source on GitHub ↗

* 清理目录 * @param {string} dir 要清理的目录

(dir)

Source from the content-addressed store, hash-verified

17 * @param {string} dir 要清理的目录
18 */
19function cleanDir(dir) {
20 if (fs.existsSync(dir)) {
21 fs.rmSync(dir, { recursive: true, force: true });
22 }
23 fs.mkdirSync(dir, { recursive: true });
24}
25
26/**
27 * 复制文件

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected