procedure RenameFile(const OldPath, NewPath: string; Flags: TScSFTPRenameFlags = []);

 

Description

Call the RenameFile method to rename or move file or directory.

If the NonBlocking property is set to True, then control is returned at once and you can learn the result of the operation execution by handling the OnSuccess and OnError events.

 

Parameters:

OldPath - the name of an existing file or directory.
NewPath - the new name for the file or directory.
Flags - the renaming parameters. This parameter is supported only since the version 5 of the SFTP protocol.

 

See Also

OnError

OnSuccess

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support