Make a path for create a file in Java (Android)
<p>Given a File object how can I create the path for saving it?</p>

<p>I tried file.mkdirs() but for example if the file's path is:</p>

<pre><code>/mnt/sdcard/downloads/myapp/temp/song.mp3 
</code></pre>

<p>it also creates a folder named "song.mp3" inside temp.</p>

<p>How can I do it correctly?</p>
