I have the following directory structure
top_folder
secondary_folder1
file1.txt
secondary_folder2
deep_folder
file2.txt
file3.txt
file4.html
file5.txt
file6.txt
I would like to access all the .txt
files that is in a folder within top_folder
(but not in any deeper folder). For example, here it is file1.txt
and file3.txt
. Is this possible using Python?