title: C# - Multiple methods with FtpWebRequest?
body: <p>I'm working on a program where I am uploading multiple files to an FTP. I need to complete 8 actions in doing this:</p>
  
  <ul>
  <li>Create a new folder within the FTP</li>
  <li>Upload three files to the new directory</li>
  <li>Create three subdirectories within the new directory</li>
  </ul>
  
  <p>From what I've gathered, I'm only able to process one method in FtpWebRequest, much like this:</p>
  
  <pre><code>FtpWebrequest request = WebRequest.Create("ftp://microsoft.com/NewDir/") as FtpWebRequest;
  request.Method = WebRequestMethods.Ftp.MakeDirectory;
  request.Credentials = new NetworkCredentials("username", "password");
  FtpWebResponse response = request.GetResponse() as FtpWebResponse;
  
  response.Close();
  </code></pre>
  
  <p>So am I going to have to write code to also create the subdirectories and stream the files upload separately? Or is it possible to complete all of this within the single connection?</p>
  
  <p>This is my first post, so if formatting is messed up I apologize. </p>