public virtual string CreateDirectory( string path )
Shows how to use CreateDirectory method to create a remote directory.
using ComponentPro.Net; ... // Create a new class instance. Ftp client = new Ftp(); // Connect to the FTP server. client.Connect("myserver"); // Authenticate. client.Authenticate("userName", "password"); // ... // Create 'myFolder' directory. client.CreateDirectory("/myFolder"); // ... // Disconnect. client.Disconnect();
Shows how to use CreateDirectory method to create a remote directory.
using ComponentPro.Net; ... // Create a new class instance. Sftp client = new Sftp(); // Connect to the SFTP server. client.Connect("myserver"); // Authenticate. client.Authenticate("userName", "password"); // ... // Create 'myFolder' directory. client.CreateDirectory("/myFolder"); // ... // Disconnect. client.Disconnect();
Shows how to use CreateDirectory method to create an archive directory.
using ComponentPro.Net; using ComponentPro.Compression; ... // Create a new class instance. using (Zip arc = new Zip()) { // Open an existing ZIP file. arc.Open("test.zip"); // Create 'myFolder' directory. arc.CreateDirectory("/myFolder"); }