Rename Method
Change the name of a file on the FTP server file system.
Declaration
procedure Rename(const ASourceFile: string, const ADestFile: string);
Parameters
Parameters Description
ASourceFile Original file name.
ADestFile New file name.
Description
Rename is a procedure used to change the name of an existing file on the remote file system.
ASourceFile specifies the existing file name.
ADestFile is the new name to use for the remote file.
Both ASourceFile and ADestFile allow use of absolute or relative path names in the argument values. If path information is not found in the argument values, the current directory on the remote file system is assumed.
Rename calls SendCmd using the FTP commands RNFR and RNTO in succession to perform the rename file operation.
See Also
SendCmd
Class
TIdFTP
--------------------------------------------------------------------------------
Version 10.0.20 Build Date 27 Sep 2004
Copyright (c) 1993-2004, Chad Z. Hower (Kudzu) and the Indy Pit Crew. All rights reserved.