title: Get file-name in sub-folders along with its information in controller
body: <p>I have a 'images' folder and inside it are subfolders which have images. What I want is the name all the images along with their path in an array.</p>
  
  <p>I have written this in my controller:</p>
  
  <pre><code>$data['images_names'] = directory_map('../project/images/');
  </code></pre>
  
  <p>this is giving be image name, but not path. Can anyone tell me how can I achieve that?</p>
  
  <p>Thanks in advance....</p>