title: How to perform file system scanning
body: <ol>
  <li>I need to write a function which when given the path of a folder 
  scans the files rooted at that folder. </li>
  <li>And then I need to display the directory structure at that folder. </li>
  </ol>
  
  <p>I know how to do 2 (I am going to use jstree to display it in the browser). </p>