title: Shiny R - How to read folder content
body: <p>I would like make a custom R script available by modifying it to run as a ShinyApp. The current script runs over all XML files present in the working directory and creates statistics and graphs.  </p>
  
  <p>In my script I use this line to read the relevant files from the working directory into R:</p>
  
  <pre><code> filelist$file &lt;- list.files(".", pattern = ".xml")
  </code></pre>
  
  <p>However, ShinyApp doesn't provide such a function (only file.input for single or multiple files), and solutions using choose.dir are limited to Windows systems, but I would like to be OS independent. It would be great if someone can point me to the right steps to get this function implemented so it can run on a ShinyApp in a browser.</p>