Skip to content

Commit

Permalink
Check for path exclusion on individual filenames to fix missing exclu…
Browse files Browse the repository at this point in the history
…de patterns
  • Loading branch information
emdoyle committed Nov 6, 2024
1 parent a20a2e2 commit 2632fc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/tach/filesystem/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def walk(
continue

def filter_filename(filename: str) -> bool:
if exclude_paths and is_path_excluded(
exclude_paths, Path(filename), use_regex_matching=use_regex_matching
):
return False
return not filename.startswith(".")

yield rel_dirpath, list(map(Path, filter(filter_filename, filenames)))
Expand Down

0 comments on commit 2632fc3

Please sign in to comment.