refactor: allow dot files and directories in file search logic

This commit is contained in:
Bohdan Triapitsyn
2026-01-18 18:01:26 +02:00
parent 85f41c39c1
commit 6c3b653fbd
3 changed files with 3 additions and 9 deletions
+2 -4
View File
@@ -72,9 +72,7 @@ const shouldSkipSearchDirectory = (name) => {
if (!name) {
return false;
}
if (name.startsWith('.')) {
return true;
}
// allow dot dirs/files; still skip excluded dirs below
return FILE_SEARCH_EXCLUDED_DIRS.has(name.toLowerCase());
};
@@ -178,7 +176,7 @@ const searchFilesystemFiles = async (rootPath, options) => {
for (const dirent of dirents) {
const entryName = dirent.name;
if (!entryName || entryName.startsWith('.')) {
if (!entryName) {
continue;
}