Skip to content

find_files

find_files(input_path, re_pattern=None, relative=False, levels=-1, get='files', parts='all', sort=True)

Get full path of files from all folders under the input_path (including itself). Can return specific files with optionnal conditions Args: input_path (str): A valid path to a folder. This folder is used as the root to return files found (possible condition selection by giving to re_callback a function taking a regexp pattern and a string as argument, an returning a boolean). Returns: list: List of the file fullpaths found under input_path folder and subfolders.