With pathlib you get a better abstraction.
Look here: https://docs.python.org/3/library/pathli....Path.glob
from pathlib import Path document_dir = Path(r'C:\Users\igyulavics\Desktop\dir1') for xlsx_file in document_dir.glob('**/*.xlsx'): # xlsx_file is a Path object # if you use old libraries, you have to use str(xlsx_file) to convert the Path to a str print(xlsx_file)This code finds all .xlsx files recursive. This should work also on Windows.
Look here: https://docs.python.org/3/library/pathli....Path.glob
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!