list all files in a nested dir structure in python code example
Example: get all files within multiple directories python
from pathlib import Path
for f in Path().cwd().glob("../*.ext"):
print(f)
# do other stuff
from pathlib import Path
for f in Path().cwd().glob("../*.ext"):
print(f)
# do other stuff