title: How to get number of resources in directory in spring?
body: <pre><code>@Value("file:" + "${d:/my/dir/}")
  private Resource dir;
  </code></pre>
  
  <p>How can I get the number of files in that resource dir? Unfortunately the <code>Resource</code> interfaces does not offer any getFiles() method...</p>