From 87f2847aba9651495f22e558b2d79cbed0c2ee4a Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Sun, 16 Jun 2024 22:20:45 +0300 Subject: [PATCH] [bug] Add maxRetries option to fix unexpected ENOTEMPTY during rm --- Common/sources/storage-fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/sources/storage-fs.js b/Common/sources/storage-fs.js index 3257dc2f2..5c0a299f6 100644 --- a/Common/sources/storage-fs.js +++ b/Common/sources/storage-fs.js @@ -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) {