fix unsupport symbolic link folders

This commit is contained in:
Harry.Tao
2025-02-18 22:33:49 +08:00
committed by Anoop M D
parent 6feea75e45
commit 78c4cb11eb
2 changed files with 2 additions and 2 deletions

View File

@@ -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 (

View File

@@ -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;
}