title: Copy files from one FTP server to another FTP server in Java
body: <p>I want to copy a file from one FTP server to another FTP server (two different hosts).</p>
  
  <pre><code>Files.copy(
      new File(channelSftp.realpath(fileName)).toPath(),
      new File(channelSftp2.realpath(fileName)).toPath());
  </code></pre>
  
  <p>It is giving <code>java.nio.file.NoSuchFileException</code></p>
  
  <p>Can someone please help me with this.</p>