import arcpy
# Create a Describe object
#
desc = arcpy.Describe("C:/Data/chesapeake.gdb")
# Print some Describe Object properties
#
if hasattr(desc, "name"):
print "Name: " + desc.name
if hasattr(desc, "dataType"):
print "DataType: " + desc.dataType
#DataType == "Folder" DataType == "Workspace"
#.DataType == "FeatureDataset"
if hasattr(desc, "catalogPath"):
print "CatalogPath: " + desc.catalogPath
# Examine children and print their name and dataType
#
print "Children:"
for child in desc.children:
print " %s = %s" % (child.name, child.dataType)