find_files¶
-
seas.filemanager.find_files(folder_path: str, match_string: str, subdirectories: bool = False, suffix: bool = False, regex: bool = False, verbose: bool = True) → List[str][source]¶ Finds files in folder_path that match a match_string, either at the end of the path if suffix=True, or anywhere if suffix=False. Searches subdirectories if subdirectories = True
- Parameters
folder_path – The folder to search for files in.
match_string – The match string to search for.
subdirectories – Whether to search subdirectories.
suffix – The suffix to search for.
regex – Whether to use regex to search for the match string.
verbose – Whether to produce verbose output.
- Returns
A list of file paths.
- Return type
results