title: How to copy a file on an FTP server?
body: <p>How do you copy a file on an FTP server? My goal is to copy <code>ftp://www.mysite.com/test.jpg</code> to <code>ftp://www.mysite.com/testcopy.jpg</code>. To rename a file, I would use:</p>
  
  <pre><code>var request = (FtpWebRequest)WebRequest.Create("ftp://www.mysite.com/test.jpg");
  request.Credentials = new NetworkCredential(user, pass);
  request.Method = WebRequestMethods.Ftp.Rename;
  request.RenameTo = "testrename.jpg"
  request.GetResponse().Close();
  
  FtpWebResponse resp = (FtpWebResponse)request.GetResponse();
  </code></pre>
  
  <p>However, there is no Method for copying files. How would you do copy a file?</p>