Skip to content

Commit 58a90bf

Browse files
committed
Make it more graceful by retrying directory removal
#47
1 parent 098c043 commit 58a90bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function runTask(temporaryPath, callback) {
1717
try {
1818
return await callback(temporaryPath);
1919
} finally {
20-
await fsPromises.rm(temporaryPath, {recursive: true, force: true});
20+
await fsPromises.rm(temporaryPath, {recursive: true, force: true, maxRetries: 2});
2121
}
2222
}
2323

0 commit comments

Comments
 (0)