Hello,
I work in a folder containing about 250 .lyr
I wish i could list the layers contained in each of .lyr
I don't know if it's possible ?
Has anybody any idea
Thank you for your help
ListLayers (arcpy.mapping)
import os
Path=r'C.......'
list=([m for m in os.listdir(Path) if m.endswith('.lyr') and os.path.isfile(os.path.join(Path, m))])
If you are interested in layers within layers as well, please see the recent post and script in my recent blog post. The script also allows for the production of a text file containing the folder's layer information.
Thank you very much Dan