Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get all files within multiple directories python

from pathlib import Path
for f in Path().cwd().glob("../*.ext"):
    print(f)
    # do other stuff
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #files #multiple #directories #python
ADD COMMENT
Topic
Name
8+4 =