I would be happy to learn why the for loop is not being executed? Event though a list of WindowsPaths gets printed. Thank you very much in advance.
from pathlib import Path
pathlist = Path("test_data").glob('**/*some_file*.json')
print(list(pathlist))
for path in pathlist:
print("This never gets printed.")