algorithmic modeling for Rhino
I was wondering if anyone can help me with this.
I need to return the sub directory paths of a supplied path in a grasshopper friendly (tree structure) as shown below, while also returning also empty folders.
Main Folder1/item1.txt{0}
Main Folder1/Sub folder1/item1.txt {0;0}
Main Folder1/Sub folder2/item1.txt {0;1}
Main Folder1/Sub folder3/=Empty={0;2}
Main Folder2/Sub folder2/item1.txt {1;1}
Main Folder1/Sub folder2/SubSub folder 1/item1.txt {0;1;0}
Similarly I wish to output the file directory at the tree address it lies in.
so in the first and last instance I would like for them to have this structure in the output;
{0}(i=0) contents = Main Folder1/item1.txt
{0;1;0}(i=0) contents = Main Folder1/Sub folder2/SubSub folder 1/item1.txt
Any Idea how to do this recursively for all the sub directories within the supplied directory.
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by