Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

Renames a file or folder on a server side.


    void RenameFile(string OldPath, string NewPath);

    Sub RenameFile(ByVal OldPath As String, ByVal NewPath As String)

    procedure RenameFile(const OldPath, NewPath: string);

    void RenameFile(const std::string &OldPath, const std::string &NewPath);

    void RenameFile(string $OldPath, string $NewPath)

    void renameFile(String OldPath, String NewPath);


  • OldPath - path to existing file
  • NewPath - specifies the new name/location of the file


    Use this method to rename the file specified by OldPath to the NewPath.
    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     CreateFile     RemoveFile    

Discuss this help topic in SecureBlackbox Forum