Skip to content

Commit

Permalink
skip path if doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
brkagithub committed Nov 28, 2024
1 parent d463273 commit 7e5b4a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/service/pending-storage-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7e5b4a2

Please sign in to comment.