Skip to content

Commit

Permalink
Make it more graceful by retrying directory removal
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 10, 2023
1 parent 098c043 commit 58a90bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function runTask(temporaryPath, callback) {
try {
return await callback(temporaryPath);
} finally {
await fsPromises.rm(temporaryPath, {recursive: true, force: true});
await fsPromises.rm(temporaryPath, {recursive: true, force: true, maxRetries: 2});
}
}

Expand Down

0 comments on commit 58a90bf

Please sign in to comment.