AnsweredAssumed Answered

os.walk(arcpy.env.workspace) retur only files from the root folder

Question asked by jsn on Jun 7, 2018
Latest reply on Jun 7, 2018 by JQuinn-esristaff

Hello everyone,

 

How do I read only files from the root folder?

 

for (path, dirs, files) in os.walk(arcpy.env.workspace):

      for file in files:

            print file

Outcomes