Skip to content

Commit 1c9c88f

Browse files
Fix: reinstate exclude logic for checkers
1 parent 019d1e0 commit 1c9c88f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cve_bin_tool/util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,14 +534,15 @@ def walk(self, roots: list[str] | None = None) -> Iterator[str]:
534534
filenames.remove(filename)
535535
except PermissionError:
536536
filenames.remove(filename)
537+
537538
dirnames[:] = [
538539
dirname
539540
for dirname in dirnames
540541
if self.pattern_match(
541-
str(Path(dirpath) / dirname), self.folder_include_pattern
542+
os.path.join(dirpath, dirname), self.folder_include_pattern
542543
)
543544
and not self.pattern_match(
544-
str(Path(dirpath) / dirname), self.folder_exclude_pattern
545+
os.path.join(dirpath, dirname), self.folder_exclude_pattern
545546
)
546547
]
547548
# Yields

0 commit comments

Comments
 (0)