Skip to content

Commit 6d5384b

Browse files
committed
Use also safeRemoveSync version when cleaning up supporting file
Follow up on #4614 and #7921
1 parent 41e1931 commit 6d5384b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/command/render/cleanup.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/*
2-
* renderCleanup.ts
3-
*
4-
* Copyright (C) 2020-2022 Posit Software, PBC
5-
*
6-
*/
2+
* renderCleanup.ts
3+
*
4+
* Copyright (C) 2020-2022 Posit Software, PBC
5+
*/
76

87
import { existsSync } from "fs/mod.ts";
98
import { dirname, extname, isAbsolute, join } from "path/mod.ts";
@@ -14,6 +13,7 @@ import {
1413
normalizePath,
1514
removeIfEmptyDir,
1615
removeIfExists,
16+
safeRemoveSync,
1717
} from "../../core/path.ts";
1818
import { figuresDir, inputFilesDir } from "../../core/render.ts";
1919

@@ -90,7 +90,7 @@ export function renderCleanup(
9090
// clean supporting
9191
ld.uniq(supporting).forEach((path) => {
9292
if (existsSync(path)) {
93-
Deno.removeSync(path, { recursive: true });
93+
safeRemoveSync(path, { recursive: true });
9494
}
9595
});
9696
}

0 commit comments

Comments
 (0)