I'm attempting to run the Buffer Analysis tool with a distance of 3 km over multiple shapefiles at the same time. I was given a folder with different types of files and ran a for loop to create a new list with just the files ending with ".shp" that I have below.
import os
import arcpy
from arcpy import env
env.workspace = "file_path"
env.overwriteOutput = True
items = os.listdir("file_path")
newlist = []
for names in items:
if names.endswith(".shp"):
newlist.append(final)
print newlist
Thus, this creates my list with just the shapefiles. However, this is where I struggle. I'm not sure how to run the buffer analysis tool over this new list that I've created.