list_files
List all files in a directory and its subdirectories.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root_dir |
Path
|
The directory containing the files. |
required |
extension |
str
|
The extension the files should have. |
''
|
Returns:
| Name | Type | Description |
|---|---|---|
files |
list[str]
|
A list with absolute paths to the files. |