title: Hybrid App to count files under local directory?
body: <p>I am building a hybrid app using Ionic. I have an image that cycles as time goes by. I would like to include all possible images under a specific directory belonging to the app and let the app decide which to show at each time randomly. The other option is just to keep an array with all filenames, but this is prone to errors. </p>
  
  <p>The question is. Despite JavaScript security limitations, can this be done, somehow, using JavaScript under Ionic or angularJS?.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Jose </p>