Click or drag to resize
FTPFileToBeUpdate Method
Check if a file (on a FTP) need an update via FTP (other FTP)

Namespace: ProFTPNetLibrary
Assembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static FTPUpdateFileError FileToBeUpdate(
	Uri fileToUpdate,
	Uri updatedFile,
	string usernameToUpdate,
	string passwordToUpdate,
	string usernameUpdated,
	string passwordUpdated,
	string proxyAddress,
	bool passive,
	int port,
	bool keepAlive
)

Parameters

fileToUpdate
Type: SystemUri
Uri of the file to check (es: "ftp://www.domain1.com/myoldfile.txt")
updatedFile
Type: SystemUri
Uri of the new file (es: "ftp://www.domain2.com/mynewfile.txt")
usernameToUpdate
Type: SystemString
FTP access username of the update file
passwordToUpdate
Type: SystemString
FTP access password of the update file
usernameUpdated
Type: SystemString
FTP access username of the updated file
passwordUpdated
Type: SystemString
FTP access password of the updated file
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: FTPUpdateFileError
UpdateFileError returned information
See Also