Hot answers tagged


I realise this question is tagged 9.3, but anyone looking for the same answer at 10.1 onwards is better off using arcpy.da.Walk. It is faster and more accurate than ListDatasets/FeatureClasses/Rasters/etc. import arcpy import os for root, dirs, datasets in arcpy.da.Walk('d:\scratch.gdb'): for ds in datasets: print os.path.join(root, ds) The ...

Only top voted, non community-wiki answers of a minimum length are eligible