MCPcopy 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 */
83export 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

cleanFunction · 0.90

Calls 1

pathExistsFunction · 0.85

Tested by

no test coverage detected