Fastest way to move a directory in Android?
<p>What is the fastest way to move a directory in Android?  In most, but not all cases, the source and destination are located on the same sdcard file system.</p>

<p>Current, my code goes through the entire directory structure, and copy the content of each file into a  new file with the same name in the new location.  It then verifies the file size matches, then deletes the source file.</p>

<p>For each file, I current run (with additional exception handling):</p>

<pre><code>    try{
      source = new FileInputStream(fileFrom).getChannel();
      destination = new FileOutputStream(fileTo).getChannel();
      destination.transferFrom(source, 0, source.size());
    } finally {
      source.close();
      destination.close();
    }
</code></pre>

<p>This seems to be slow as well as way to much computational work for what I expect could maybe be a simple instant "node modification" at the raw file system level.</p>
