Home Forums .NET libraries Xceed SFTP/FTP for .NET How to rename a folder on a FTP Server

Viewing 1 post (of 1 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21466 |

    If you use the FtpConnection class, which means you use the FtpFolder class, then you can get an instance of the folder that you want, and then simply use the Name property, which will rename the folder on the ftp server.

          FtpConnection ftpConn = new FtpConnection( “yourserver”, “username”, “password” );
          AbstractFolder folder = new FtpFolder( ftpConn, @”\folderToRename\” );
          folder.Name = “folderNewName”;

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Xceed admin (had 2208 views)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.