Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/R-js/libRmath.js
/ removeSafeDir
Function
removeSafeDir
scripts/build.ts:13–19 ·
view source on GitHub ↗
(dir: string)
Source
from the content-addressed store, hash-verified
11
12
13
function
removeSafeDir(dir: string) {
14
try {
15
rmSync(dir, { recursive: true });
16
} catch (error: any) {
17
if
(error.code !==
'ENOENT'
) throw error;
18
}
19
}
20
21
22
/**
Callers
1
init
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected