[Visual Basic] Public Function
FtpRenameFile(ByVal remoteAddress As String, ByVal newRemotePath As
String) As Boolean
[C#] public bool FtpRenameFile(string
remoteAddress, string newRemotePath);
Parameters
remoteAddress
URI
newRemotePath
The new remote filename
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The FtpRenameFile method renames a file on an FTP server specifying the remote URI and the new remote filename. This method is enabled for the FTP protocol.
Example
[Visual Basic.NET]
Dim Ret
As Boolean 'Username
and password
ImageKit.File.FtpCredentials = New NetworkCredential("user", "password")
'Renames the file
Ret = ImageKit.File.FtpRenameFile("ftp://www.newtone.co.jp/test/test.jpg", "test/test1.jpg")
[Visual C#.NET]
bool Ret;
//Username and password
ImageKit.File.FtpCredentials = new NetworkCredential("user", "password");
//Renames the file
Ret = ImageKit.File.FtpRenameFile("ftp://www.newtone.co.jp/test/test.jpg", "test/test1.jpg");