Skip to content

Commit de51a39

Browse files
committed
Ignore errors on ENOENT for cleanup
1 parent 1795f95 commit de51a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tmp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ async function withSubdir(prefix, fn, options) {
717717
_logger.info(logTags,"lib-tmp.gc.start");
718718
const t0 = Date.now();
719719
try {
720-
await fsp.rm(tmpDir, { recursive: true, maxRetries: 5 });
720+
await fsp.rm(tmpDir, { force: true, recursive: true, maxRetries: 5 });
721721
_logger.info({ ...logTags, duration: Date.now() - t0 }, "lib-tmp.gc.end");
722722
} catch (error) {
723723
_logger.info({ ...logTags, duration: Date.now() - t0, error }, "lib-tmp.gc.error");

0 commit comments

Comments
 (0)