Answers for "python get file path from in os.walk"

0

python get file path from in os.walk

shpfiles = []
for dirpath, subdirs, files in os.walk(path):
    for x in files:
        if x.endswith(".shp"):
            shpfiles.append(os.path.join(dirpath, x))
Posted by: Guest on March-01-2021

Code answers related to "python get file path from in os.walk"

Python Answers by Framework

Browse Popular Code Answers by Language