title: Kotlin: get list of all files in resource folder
body: <p>Is there a way to get list of all files in &quot;resources&quot; folder in Kotlin?</p>
  <p>I can read specific file as</p>
  <pre><code>Application::class.java.getResourceAsStream(&quot;/folder/filename.ext&quot;)
  </code></pre>
  <p>But sometimes I just want to extract everything from folder &quot;folder&quot; to an external directory.</p>