[Visual Basic] Public Function
FtpRenameFile(ByVal remoteAddress As System.Uri, ByVal
newRemotePath As String) As Boolean
[C#] public bool FtpRenameFile(System.Uri
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 proptocol.
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(New Uri("ftp://www.newtone.co.jp/test/test.jpg"), "test/test.jpg") [Visual C#.NET] bool Ret; //Username and password ImageKit.File.FtpCredentials = new NetworkCredential("user", "password"); //Renames the file Ret = ImageKit.File.FtpRenameFile(new Uri("ftp://www.newtone.co.jp/test/test.jpg"), "test/test1.jpg");