pack.list_files_in_folders
pack.list_files_in_folders(folders, recursive=False, pattern=None, invert=False)Given a list of folder paths, return a list of all files inside them with their relative paths (including the folder name).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| folders | list of str | List of folder paths to search in. | required |
| recursive | bool | If True, include files in subfolders recursively. | False |
| pattern | str | A glob pattern (e.g., “*.csv”) or regex to filter file paths. If None, all files are included. | None |
| invert | bool | If True, include all files except those that match the pattern. | False |