Skip to content

Commit

Permalink
Debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jul 8, 2024
1 parent 1294f39 commit 751f85c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/filename_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ def find_non_matching_files(name_patterns, paths, excludes):
for path in paths:
for file in glob.glob(path, recursive=True):
# Check if the file matches any of the exclude patterns
print(f"Checking file: {file}")
logging.debug(f"Checking file: {file}")
for e in excludes:
logging.debug(f"Checking exclude: {e}")
if fnmatch.fnmatch(file, e):
logging.debug(f"Excluding file: {file}")
else:
logging.debug(f"File not excluded: {file}")

if any(fnmatch.fnmatch(file, e) for e in excludes):
continue
# Check if the file matches any of the name patterns
Expand Down

0 comments on commit 751f85c

Please sign in to comment.