Help with arcpy.ListDatasets

Discussion created by emilharold on Nov 25, 2013
Latest reply on Nov 25, 2013 by xander_bakker
I am simply trying to create a list of all the features within a geodatabase. It seems easy enough, but here is what happens with my script:

>>> import arcpy
>>> from arcpy import env
>>> arcpy.env.workspace = "C:\E1B8\Grid_Create_Update_11-2013\CalcMiles.gdb"
>>> datasetList = arcpy.ListDatasets("*", "Feature")
>>> len(datasetList)

My geodatabase contains various features, but as you can see my code creates an empty list. What am I missing?