PowerTCP FTP for .NET
Rename Method



Existing path.
New name for path.
Rename a file or directory.
Syntax
Public Function Rename( _
   ByVal oldPath As String, _
   ByVal newPath As String _
) As List(Of Response)
Dim instance As Ftp
Dim oldPath As String
Dim newPath As String
Dim value As List(Of Response)
 
value = instance.Rename(oldPath, newPath)
public List<Response> Rename( 
   string oldPath,
   string newPath
)
public:
List<Response^>^ Rename( 
   String^ oldPath,
   String^ newPath
) 

Parameters

oldPath
Existing path.
newPath
New name for path.

Return Value

A List of Response objects.
Exceptions
ExceptionDescription
FtpProtocolExceptionThe command did not succeed.
Remarks

Characters specified in the remote path are sent to the server unmodified. If the path contains characters that are invalid for the server host filesystem, it may cause the operation to fail with an FtpProtocolException.

See Also

Reference

Ftp Class
Ftp Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic