title: Create folder on ftp
body: <p>I am using method to create folder on ftp i want get exception if folder already exsists how to make it over write the existing folder</p>
  
  <pre><code>using System; using System.Net;
  
  class Test {
      static void Main()
      {
          WebRequest request = WebRequest.Create("ftp://host.com/directory");
          request.Method = WebRequestMethods.Ftp.MakeDirectory;
          request.Credentials = new NetworkCredential("user", "pass");
          using (var resp = (FtpWebResponse) request.GetResponse())
          {
              Console.WriteLine(resp.StatusCode);
          }
      } }
  </code></pre>
  
  <p>it is "remote server returned error (550) file not found"</p>