Collecting paths of some specified files that you want to import or read.
If you want to collect all files under certain folder, this function should be the perfect one. It will collect all files with certain name. Then this function will return a list will all paths of those files so that further import or read is feasible.
is the root path including all folders and files that you would like to search.
is the name of files that you want to collect.
The whole paths of all files that meet the criteria were saved as a list.