This method renames a file that exists on the FTP server.

[C++Builder]   [ bool = ]imagekitcontrolname->FileIO->FTPRenameFileEx(const UnicodeString RemoteOldFilePath, const UnicodeString RemoteNewFile)
[Delphi]   [ Boolean = ]imagekitcontrolname.FileIO.FTPRenameFileEx(const RemoteOldFilePath: string; const RemoteNewFile: string)

Parameters

Name Explanation
RemoteOldFilePath The old name of the file (The name and path of the file prior to renaming)
RemoteNewFile The new name of the file (DOES NOT INCLUDE PATH)

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

the FTPRenameFileEx method renames a file that exists on the FTP server. This method can only be used after the FTPConnect method has connected to the FTP server. This method can only be executed from the client computer. It does not operate on the server.

Example Code:

C++Builder
if (VImageKit1->FileIO->FTPConnect("www.newtone.co.jp", "", 21, true, "User", "Password") == false) return;
VImageKit1->FileIO->FTPRenameFileEx("images/001.jpg", "002.jpg");
VImageKit1->FileIO->FTPDisconnect();

Delphi
if (VImageKit1.FileIO.FTPConnect('www.newtone.co.jp', '', 21, True, 'User', 'Password') = False) then Exit;
VImageKit1.FileIO.FTPRenameFileEx('images/001.jpg', '002.jpg');
VImageKit1.FileIO.FTPDisconnect();

 

The ImageKit10 VCL is a product created by Newtone Corporation