MCPcopy Index your code
hub / github.com/code-pushup/cli / removeDirectoryIfExists

Function removeDirectoryIfExists

packages/utils/src/lib/file-system.ts:47–51  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

45}
46
47export async function removeDirectoryIfExists(dir: string) {
48 if (await directoryExists(dir)) {
49 await rm(dir, { recursive: true, force: true });
50 }
51}
52
53export function createReportPath({
54 outputDir,

Callers 1

executeRunnerConfigFunction · 0.90

Calls 1

directoryExistsFunction · 0.85

Tested by

no test coverage detected