Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #file #path
ADD COMMENT
Topic
Name
4+1 =