title: how do i list all possible directories and paths to subfolders ignoring files
body: <p>I want all possible folder paths from the root, ignoring all paths that end with only a file.
  getdirectories is not listing every possible path.</p>
  
  <p>for ex:
  root : folders   a and b</p>
  
  <pre><code>      path a - c
        path a - c - d
        path a - c - x
  
        path b - e
        path b - e - f
        path b - e - g
  </code></pre>