title: Java 7 - Files.copy copying empty file
body: <p>Files.copy is not working as expected. The copied file is always 0 bytes. 
  Below is the code snippet</p>
  
  <pre><code>File sourceFile = new File(sorceFileName);
  File destinationFile = new File(destinationFileName);
  Files.copy(sourceFile.toPath(), destinationFile.toPath());
  </code></pre>
  
  <p>What is the reason for this? Running on Solaris OS.</p>