MCPcopy Create free account
hub / github.com/Sjj1024/PakePlus-Win7 / removeFileSafe

Function removeFileSafe

scripts/afterPack.cjs:13–21  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

11 const appDir = context.appOutDir
12
13 const removeFileSafe = (filePath) => {
14 try {
15 if (fs.existsSync(filePath)) {
16 fs.unlinkSync(filePath)
17 }
18 } catch {
19 // ignore
20 }
21 }
22
23 const removeDirSafe = (dirPath) => {
24 try {

Callers 2

afterPack.cjsFile · 0.85
walkAndCleanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected