15 lines
357 B
Python
15 lines
357 B
Python
import os
|
|
import glob
|
|
import time
|
|
|
|
|
|
def find_shp_files(root_folder):
|
|
shp_files = []
|
|
# Sort folders alphabetically
|
|
for foldername, _, _ in sorted(os.walk(root_folder)):
|
|
for filename in sorted(glob.glob(os.path.join(foldername, '*.shp'))):
|
|
new_file_name = filename.replace('\\', r'/')
|
|
shp_files.append(new_file_name)
|
|
return shp_files
|
|
|