Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/darkreader/darkreader
/ removeFolder
Function
removeFolder
tasks/utils.js:83–87 ·
view source on GitHub ↗
(dir)
Source
from the content-addressed store, hash-verified
81
* @returns {Promise<void>}
82
*/
83
export
async
function
removeFolder(dir) {
84
if
(
await
pathExists(dir)) {
85
await
fs.rm(dir, {recursive: true});
86
}
87
}
88
89
/**
90
* @param {string} dest
Callers
1
clean
Function · 0.90
Calls
1
pathExists
Function · 0.85
Tested by
no test coverage detected