folder_search(input_folder, file_name)
Scans a folder an returns a list of the paths to files that match the requirements. The matching is litteral. Previously named Foldersearch
Warning
It is just returning rigidly the files that exaclty match the path entered. Prefer re_folder_search for a more flexible scan using regular expressions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_folder |
str |
Root path from wich to search deeper. |
required |
file_name |
str |
A name of folder or file located in any subfolders (max recursion depth : 1) of the input_folder. |
required |
Returns:
Type | Description |
---|---|
NewDirlist (list) |
List of dirs matching the requirement. |