LumiSoft Net Help
Rename Method (fromPath, toPath)
NamespacesLumiSoft.Net.FTP.ClientFTP_ClientRename(String, String)
Renames file or directory to the new specified name.
Declaration Syntax
C#Visual BasicVisual C++F#
public void Rename(
	string fromPath,
	string toPath
)
Public Sub Rename ( 
	fromPath As String,
	toPath As String
)
public:
void Rename(
	String^ fromPath, 
	String^ toPath
)
member Rename : 
        fromPath : string * 
        toPath : string -> unit 
Parameters
fromPath (String)
Exisitng file or directory absolute or relative path to the current working directory.
toPath (String)
New file or directory absolute or relative path to the current working directory.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and this method is accessed.
InvalidOperationExceptionIs raised when FTP client is not connected.
ArgumentNullExceptionIs raised when fromPath or toPath is null.
ArgumentExceptionIs raised when any of the arguments has invalid value.
FTP_ClientExceptionIs raised when FTP server returns error.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119