create missing directories in path
<p>Is there a clean way of taking a path like this:</p>

<pre><code>/foo/bar/faz/baz/
</code></pre>

<p>where <code>foo</code> and <code>bar</code> exist, but <code>faz</code> and <code>baz</code> don't, and create create <code>faz</code> and <code>baz</code> while leaving <code>foo</code> and <code>bar</code> alone? (Of course, this should work for something like <code>exists/exists/exists/doesnt_exist/doesnt_exit/doesnt_exist/doesnt_exist</code> or whatever (number of non existants/existants is variable) too.</p>

<p>Thanks!</p>
