ComponentPro UltimateFtp

      Upload a directory from another file system

      Language Filter: AllSend comments on this topic to ComponentPro

      You can also upload an entire directory from another file system to the SFTP server using this Upload method. For example, upload a directory named "data" from a ZIP file to the server without using any temporary files:

      using (Sftp client = new Sftp())
          // Connect to the SFTP server. 
          // Authenticate. 
          client.Authenticate("test", "test");
          // Open an existing zip file. 
          Zip zip = new Zip();
          // Upload "data" directory in the ZIP archive to the server. 
          // The remote dir "/" will contain "/data" folder 
          client.Upload(zip, @"/data", true, null, "/", new TransferOptions());