title: Java/Android, new File syntax
body: <p>I need a quick tip on using <code>new File(File dir, String file)</code>. I'm specifically dealing with Android and am not concerned with any other systems. I only bring up Android because of the linux-based OS, so I think it might make a difference.</p>
  
  <p>I want to make a new directory named "original" on the sdcard in the "uot" directory. So the path would be: <code>"/sdcard/uot/original/"</code></p>
  
  <p>I'm also wanting to call <code>new File(systemDir, "framework-res.apk")</code></p>
  
  <p><strong>My question, simply:</strong><br>
  Do I need path separators in the <code>String</code> part of <code>new File(File dir, String file)</code> or not?</p>
  
  <p><strong>EDIT:</strong><br>
  I'm wanting to then call <code>mkdirs()</code> on the new File that I create above.</p>
  
  <p>To make a new directory, which should I do:</p>
  
  <pre><code>File newDir = new File(sdcard, "/uot/");
  newFile.mkdirs();
  </code></pre>
  
  <p>or</p>
  
  <pre><code>File newDir = new File(sdcard, "uot");
  newFile.mkdirs();
  </code></pre>
  
  <p>And then for <code>newFile</code> I'm going to then call </p>
  
  <pre><code>"cp "+newFile.getAbsolutePath()+" "+newDir.getAbsolutePath()
  </code></pre>
  
  <p>To generate the File object for <code>newFile</code>, should I do:</p>
  
  <pre><code>File newFile = new File(systemDir, "framework-res.apk");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>File newFile = new File(systemDir, "/framework-res.apk");
  </code></pre>
  
  <p>Note:<br>
  <code>systemDir</code> will point to "/system/", but I already have that resolved separately.</p>