Why does arcpy.da.Walk give different output with identical File (GDB) and Personal (MDB) Geodatabases?
Example:
I am using ArcMap 10.4.1
r'D:\SCRipt\New.mdb'
is a copy of r'D:\SCRipt\New.gdb'
db = r'D:\SCRipt\New.mdb'
walk = arcpy.da.Walk(db)
for x,y,z in walk:
print x
print y
print z
produces this output:
D:\SCRipt\New.mdb
[u'FORESTS']
[u'Layout10', u'Layout1']
D:\SCRipt\New.mdb\FORESTS
[]
[u'Vydel', u'Kvartal', u'Vydel_S', u'Vydel_L', u'Lesnich', u'Leshoz', u'Layout1_Vydel']
db = r'D:\SCRipt\New.gdb'
walk = arcpy.da.Walk(db)
for x,y,z in walk:
print x
print y
print z
produces this different output:
D:\SCRipt\New.gdb
[u'FORESTS']
[u'Layout1', u'Layout10']
D:\SCRipt\New.gdb\FORESTS
[]
[] ## <- Why?
arcpy.da.Walk
gives the same results between file geodatabases and personal geodatabases with feature datasets. I checked the Issues Addressed for 10.7, 10.7.1, 10.8, 10.8.1, and 10.8.2 for a defect being addressed, but nothing jumped out at me.