Skip to content

Commit

Permalink
change readdirSync to existsSync
Browse files Browse the repository at this point in the history
  • Loading branch information
AmelieLoulergue committed Dec 1, 2024
1 parent 67c5ba9 commit cdcf482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const connectToRedisWithRetry = async (maxRetries, delay) => {
};

const createStandaloneFolderAndCatalog = () => {
if (!fs.readdirSync('/tmp/standalone')) {
if (!fs.existsSync('/tmp/standalone')) {
logger.info('Creating /tmp/standalone...');
fs.mkdirSync('/tmp/standalone', { recursive: true });
}
Expand Down

0 comments on commit cdcf482

Please sign in to comment.