title: How to create packages (folders) in an Eclipse project via plugin
body: <p>I try to develop a small plugin for Eclipse to create several Java files in several folders (packages) as a starting point for a new module of a larger software.</p>
  
  <p>I've tried to use an <code>IFile</code> object like this:</p>
  
  <pre><code>final IFile file = container.getFile(new Path(myFileName));
  ...
  file.create(stream, true, monitor);
  </code></pre>
  
  <p>That works as long as all folders on the path to the file exists. But it does not create any missing folders (new packages) but throws a "resource not exists" exception.</p>
  
  <p>I could not find any way to do this by <code>IResource</code> or <code>IWorkspace</code> objects.</p>