Could this script be expanded to list multiple file types?.
Sure.List all files that end with .shp or .dxf or start with 'str': import os
ws = "c:/temp"
for file in os.listdir(ws):
if file.endswith(".shp") or file.endswith(".dxf") or file.startswith("str"):
print file
You can also use wildcards like this:import os, glob
# Delete all files that contain the word 'points'
for file in glob.glob("*points*"):
os.remove(file)