title: FileLocator's method toFileURL ignores empty folders
body: <p>With aid of <a href="https://stackoverflow.com/questions/8465417/unfolding-automatically-an-eclipse-plugin-jar/8478944#8478944">this</a> and <a href="https://stackoverflow.com/questions/8792260/eclipse-how-to-programmatically-copy-a-folder-from-a-plugin-to-a-new-project-in/8792373#8792373">this</a> questions I managed to create the most of the desired file structure in a project by copying this from my plugin bundle.</p>
  
  <pre class="lang-java prettyprint-override"><code>URL templatesURL = Activator.getDefault().getBundle().getEntry(TEMPLATES_PATH);
  File templatesFolder = new File(FileLocator.toFileURL(templatesURL).getPath());
  copyFiles(templatesFolder, project, monitor);
  </code></pre>
  
  <p>I have two folders <code>TEMPLATES_PATH + "\test\java"</code> with no files in them. I want these to be created as well, but they don't. Investigations led me to the folder where OSGi extracts the contents of the bundle:</p>
  
  <pre><code>C:\eclipse\configuration\org.eclipse.osgi\&lt;number&gt;\0\.cp
  </code></pre>
  
  <p>The folders aren't being extracted! I could either create an empty file <code>"test\java\.touch"</code> or create the folders manually with </p>
  
  <pre><code>IFolder testFolder = project.getFolder(new Path("test"));
  testFolder.create(true, true monitor);
  testFolder.getFolder(new Path("java")).create(true, true monitor);
  </code></pre>
  
  <p>I can get the desired structure using one of the both ways but I would like to know: is there a way to make <code>FileLocator</code> extract the folders?</p>