Exists function in ArcPy

Idea created by dsau461@ecy.wa.gov on Jun 7, 2012
    • n314
    • enile
    • eatkinson
    • dsau461@ecy.wa.gov
    Add an optional parameter to the ArcPy Exists function to allow the caller to specify the type of object to be tested for such as feature class, table, folder, file, workspace, etc.

    For example:
    if arcpy.Exists("MinorRoads", folder):
    in this case, the Exists function would return "True" if a folder exists with the name
    "MinorRoads", otherwise it would return false.