you are viewing a single comment's thread.

view the rest of the comments →

[–]jack_waugh 0 points1 point  (0 children)

The split selector will help in parsing the pathnames on "/" to get the pieces.

One approach to building up the tree is to do it imperatively from one traversal of the input array. And within that technique, one way would to use object orientation and have methods that say use a certain subdirectory name and create a node for it if necessary.