Skip to content

Commit

Permalink
[bug] Add maxRetries option to fix unexpected ENOTEMPTY during rm
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Jun 16, 2024
1 parent 3736719 commit 87f2847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/sources/storage-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async function deleteObject(storageCfg, strPath) {

async function deletePath(storageCfg, strPath) {
const fsPath = getFilePath(storageCfg, strPath);
return rm(fsPath, {force: true, recursive: true});
return rm(fsPath, {force: true, recursive: true, maxRetries: 3});
}

async function getSignedUrl(ctx, storageCfg, baseUrl, strPath, urlType, optFilename, opt_creationDate) {
Expand Down

0 comments on commit 87f2847

Please sign in to comment.