title: FTP Check if file exist when Uploading and if it does rename it in C#
body: <p>I have a question about Uploading to a FTP with C#.  </p>
  
  <p>What I want to do is if the file exists then I want to add like Copy or a 1 after the filename so it doesn't replace the file. Any Ideas?</p>
  
  <pre><code>var request = (FtpWebRequest)WebRequest.Create(""+destination+file);
  request.Credentials = new NetworkCredential("", "");
  request.Method = WebRequestMethods.Ftp.GetFileSize;
  
  try
  {
      FtpWebResponse response = (FtpWebResponse)request.GetResponse();
  }
  catch (WebException ex)
  {
      FtpWebResponse response = (FtpWebResponse)ex.Response;
      if (response.StatusCode == FtpStatusCode.ActionNotTakenFileUnavailable)
      {
  
      }
  }
  </code></pre>