title: Blackberry - Get list of files and folders on device and SD card
body: <p>I am writing an app for Blackberry and will need to scan the device for certain types of media, for example, pictures, MP3s etc.</p>
  
  <p>Is there an easy way to scan all the files and folders on the device itself (even just the <code>home/user/</code> directory), as well as the SD card? </p>
  
  <p>I'm assuming the solution is some sort of recursive algorithm whereby I get a list of directories in the current path, and scan through them, but how do I get the list of all folders (as well as files) in the path?</p>
  
  <p>Thanks.</p>