steveattt

ListFeatureClasses returns '[ ]'

Discussion created by steveattt on Sep 17, 2013
Latest reply on Oct 20, 2016 by jhansi131
Hi,

I'm not able to get the ListFeatureClasses working!

This is a pretty basic code, and I've seen many examples, including in the ESRI 10.1 Help

Note that 'Exists' works!
But not ListFeatureClasses, ListDatasets, ListFiles... - these return '[ ]'

Files are on my C drive (local Hard drive)

Thanks,

Steve

import arcpy
from arcpy import env

env.workspace = "C:/drainagescripting/inputdata/drainagedatasp.gdb"

# THIS WORKS - prints 'true'
print arcpy.Exists("C:/drainagescripting/inputdata/drainagedatasp.gdb")

# THESE return '[ ]'
fclist = arcpy.ListFeatureClasses()
print fclist

Outcomes