List FeatureClasses(shape) in folder and sufolders(dirs) then covert to SDE gdb

Discussion created by frederic12 on Nov 11, 2011
Latest reply on Apr 19, 2012 by jskinner-esristaff
I have a problem with script python, I do that for converting all shape in foler and subfoler,dirs to arcsde geodatabase i wrote this but , it's now working, what is the problem for this:
>>>import arcpy
>>> from arcpy import env
>>> import os, sys
>>> import os.path
>>>def fcs_in_workspace(workspace):
arcpy.env.workspace = workspace
for fc in arcpy.ListFeatureClasses():
print os.path.join(workspace, fc)
for ws in arcpy.ListWorkspaces():
fcs_in_workspace(os.path.join(workspace, ws))
>>>fclist = list(fcs_in_workspace("Z:\\\\0_referentiels\\4_maillages"))
>>> for fc in fclist:
arcpy.FeatureClassToGeodatabase_conversion(fc,"C:\\\\Documents and Settings\\xx\\Application Data\\ESRI\\Desktop10.0\\ArcCatalog\\Connection to")
Bests regards