I try to Delete remote directory by using following code but i was unalbe to delete the directory from ftp.
Aspose.Network.Ftp.FtpClient T20 = new Aspose.Network.Ftp.FtpClient();
Is any one Help me how to directory with containg all files from remote server.
Thanks for considering Aspose.
The RemoveDirectory() method deletes the folders that exist in the currently selected directory.
For example, you have the following heirarchy:
If you want to delete "folder1-1", you need to first change directory to "folder1", then call the RemoveDirectory() method.
The sample could might look like:
client = new FtpClient("host", 21, "anonymous", "password");
client.Connect( true );
// Change current directory
// remove folder under the current directory
catch( Aspose.Network.Ftp.FtpException fe )
Messages.ShowMessage( fe.ToString() );