diff --git a/utils/g5505_utils.py b/utils/g5505_utils.py index 622148ddd83e8cc2205d4636d078acefd33933af..a145df1175abce203a57c4c4e8743644f31a09e0 100644 --- a/utils/g5505_utils.py +++ b/utils/g5505_utils.py @@ -319,7 +319,7 @@ def copy_directory_with_contraints(input_dir_path, output_dir_path, for dirpath, _, filenames in os.walk(subpath,topdown=False): # Ensure composite keywords e.g., <keyword>/<keyword> are contained in the path - if not any([keyword in dirpath for keyword in select_dir_keywords]): + if select_dir_keywords and not any([keyword in dirpath for keyword in select_dir_keywords]): continue # Reduce filenames to those that are admissible