Importing a directory as a heirarchy of Group Layers

المشرف العام

Administrator
طاقم الإدارة
So I have a directory of shapefiles used to store some spatial data, and I'd like to find a way to export this directory to an mxd such that every folder is replaced as a group layer, but preserving the hierarchy of it all. The directory looks like this:

I've got a good handle on how to traverse the tree using os.walk() and extract the name of each folder using the regex module. I'm wondering if there's a tool or set of tools I could use to create a group layer for every folder and sub-folder found in the directory.



أكثر...
 
أعلى