diff --git a/packages/bruno-cli/src/commands/run.js b/packages/bruno-cli/src/commands/run.js index 13106de96..83911f876 100644 --- a/packages/bruno-cli/src/commands/run.js +++ b/packages/bruno-cli/src/commands/run.js @@ -177,7 +177,7 @@ const getBruFilesRecursively = (dir, testsOnly) => { for (const file of filesInCurrentDir) { const filePath = path.join(currentPath, file); - const stats = fs.lstatSync(filePath); + const stats = fs.statSync(filePath); // todo: we might need a ignore config inside bruno.json if ( diff --git a/packages/bruno-cli/src/utils/filesystem.js b/packages/bruno-cli/src/utils/filesystem.js index 4b066ac68..c3438cebc 100644 --- a/packages/bruno-cli/src/utils/filesystem.js +++ b/packages/bruno-cli/src/utils/filesystem.js @@ -29,7 +29,7 @@ const isFile = (filepath) => { const isDirectory = (dirPath) => { try { - return fs.existsSync(dirPath) && fs.lstatSync(dirPath).isDirectory(); + return fs.existsSync(dirPath) && fs.statSync(dirPath).isDirectory(); } catch (_) { return false; }