diff --git a/src/service/pending-storage-service.js b/src/service/pending-storage-service.js index 46b52c9d6..4547766ad 100644 --- a/src/service/pending-storage-service.js +++ b/src/service/pending-storage-service.js @@ -102,6 +102,11 @@ class PendingStorageService { const filesToDelete = []; const collectFiles = async (basePath) => { + if (!(await this.fileService.pathExists(basePath))) { + this.logger.warn(`Storage path does not exist: ${basePath}`); + return; + } + const blockchainFolders = await this.fileService.readDirectory(basePath); for (const blockchain of blockchainFolders) {