Skip to content

Commit

Permalink
Add print statements to show unmatched paths in find_paths function
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieHakim committed Apr 2, 2024
1 parent 1e205b9 commit 5da3815
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bnpm/path_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def get_paths_recursive_inner(dir_inner, depth_end, depth=0):
if fn_match(path, reMatch, reMatch_in_path):
print(f'Found folder: {path}') if verbose > 0 else None
paths.append(path)
else:
print(f'Not matched: {path}') if verbose > 1 else None
if depth < depth_end:
print(f'Entering folder: {path}') if verbose > 1 else None
paths += get_paths_recursive_inner(path, depth_end, depth=depth+1)
Expand All @@ -188,6 +190,8 @@ def get_paths_recursive_inner(dir_inner, depth_end, depth=0):
if fn_match(path, reMatch, reMatch_in_path):
print(f'Found file: {path}') if verbose > 0 else None
paths.append(path)
else:
print(f'Not matched: {path}') if verbose > 1 else None
return paths

def fn_check_pathLike(obj):
Expand Down

0 comments on commit 5da3815

Please sign in to comment.