 | FTPMoveFile Method (Uri, String, String, String, String, Boolean, Int32, Boolean) |
Move a file via FTP from a directory to another
Namespace: ProFTPNetLibraryAssembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool MoveFile(
Uri fileToRename,
string newDirectoryLocation,
string username,
string password,
string proxyAddress,
bool passive,
int port,
bool keepAlive
)
Public Shared Function MoveFile (
fileToRename As Uri,
newDirectoryLocation As String,
username As String,
password As String,
proxyAddress As String,
passive As Boolean,
port As Integer,
keepAlive As Boolean
) As Boolean
Parameters
- fileToRename
- Type: SystemUri
[Missing <param name="fileToRename"/> documentation for "M:ProFTPNetLibrary.FTP.MoveFile(System.Uri,System.String,System.String,System.String,System.String,System.Boolean,System.Int32,System.Boolean)"]
- newDirectoryLocation
- Type: SystemString
Sub-directory to copy the file - username
- Type: SystemString
FTP access username - password
- Type: SystemString
FTP access password - proxyAddress
- Type: SystemString
FTP proxy (string.empty if unknown or not used) - passive
- Type: SystemBoolean
FTP passive mode enabling (false if unknown or not used) - port
- Type: SystemInt32
FTP access port (usually 21) - keepAlive
- Type: SystemBoolean
Define if you need to keep alive the connection after the process (usually false)
Return Value
Type:
BooleanTrue if completed successfully; false otherwise
See Also