title: Recursively create all given tree paths in a list?
body: <p>I have some strings that look:</p>
  
  <pre><code>/Test Town
  /Test Town/Interior
  /Test Dungeon/Secret
  </code></pre>
  
  <p>Given an arbitrary list of pathes, how can I generate the leaf nodes automatically? I imagine the solution involves recursion but I can't quite get it. </p>
  
  <p>I tried to do it using a loop but I only got the first level.</p>
  
  <p>The above would produce something like:</p>
  
  <p><img src="https://i.stack.imgur.com/TE3zk.png" alt="enter image description here"></p>