Thanks. Looking at that now, but I can't figure out how to use ListRasters with the way I'm walking the subfolders. I threw it in my os.walk for, but the rasterList is empty because the only grids are down in C:\avdata\PythonTest\ClipLidar\TestData\Input\Highest_Hit
.
.
#Find the input feature classes
for root, dirs, files in os.walk(InputFolder):
rasterList = arcpy.ListRasters("*", "GRID")
for raster in rasterList:
print raster
for name in files:
#Handle tifs
if os.path.splitext(name)[1] == ".tif":
FileObj = arcpy.mapping.Layer(os.path.join(root, name))
FileExtent = FileObj.getExtent()
print "Processing: " + name
#if image overlap or touches AOI polygon, then clip image, write to output
Extent_Disjoint = str(FileExtent.disjoint(AOIextent))
if Extent_Disjoint == 'False':
print "Clipping: " + name
OutputPath = root.replace("Input","Output")
if not os.path.exists(OutputPath):
os.makedirs(OutputPath)
Clipname = os.path.splitext(name)[0] + "cp.tif"
print "Writing " + (os.path.join(OutputPath,Clipname))
arcpy.Clip_management((os.path.join(root, name)),"#",(os.path.join(OutputPath,Clipname)),clipshape,"#","ClippingGeometry")
#for shapefiles, use a different clip, write to output.
if os.path.splitext(name)[1] == ".shp":
.
.