File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
87import { existsSync } from "fs/mod.ts" ;
98import { 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" ;
1818import { 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 }
You can’t perform that action at this time.
0 commit comments