title: How to create a new file together with missing parent directories?
body: <p>When using </p>
  
  <pre><code>file.createNewFile();
  </code></pre>
  
  <p>I get the following exception</p>
  
  <pre><code>java.io.IOException: Parent directory of file does not exist: /.../pkg/databases/mydb
  </code></pre>
  
  <p>I am wondering is there a createNewFile that creates the missing parent directories?</p>