From 5da3815557cfa803e453b5d159f1b2a8f1f55b68 Mon Sep 17 00:00:00 2001 From: RichieHakim Date: Tue, 2 Apr 2024 01:03:30 -0400 Subject: [PATCH] Add print statements to show unmatched paths in find_paths function --- bnpm/path_helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bnpm/path_helpers.py b/bnpm/path_helpers.py index d87a096..b8923de 100644 --- a/bnpm/path_helpers.py +++ b/bnpm/path_helpers.py @@ -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) @@ -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):