I want to search through all of the subdirectories within a parent directory for all of the files with a .tsv
extension. I have tried using the glob module but it does not return any of the subdirectory level information.
I have tried using glob.glob as a way to search through all of the subdirectories within a specific user specified location but it is not working. It simply returns an empty response, which is presumably all of the .tsv
files that exist in the parent directory, which is none.
for file in glob.glob(os.path.join(location, '*.tsv')):
print(file)
What I am hoping to see is all of the .tsv
files within the parent directory, even within subdirectories being printed in the shell.