Click or drag to resize

SFTPGetFiles Method (String, String, String, String, String, FTPFilterType, String, Boolean, Boolean, Boolean)

Gets all the files in a remote directory with an optional filter on the extension.

Namespace:  Koden.Utils.FTPClient
Assembly:  Koden.Utils.FTPClient (in Koden.Utils.FTPClient.dll) Version: 1.1.6453.26060
Syntax
public static FWRetVal<string> GetFiles(
	string strHost,
	string strUserName,
	string strPassword,
	string serverPath,
	string localDestPath,
	FTPFilterType filterType,
	string filterText = null,
	bool forceOverwrite = false,
	bool keepOrigDateTime = false,
	bool deleteAfterRetrieve = false
)

Parameters

strHost
Type: SystemString
The host.
strUserName
Type: SystemString
UserName to use
strPassword
Type: SystemString
Password to use
serverPath
Type: SystemString
The Server Path to get files from
localDestPath
Type: SystemString
The local dest path to save files to.
filterType
Type: Koden.Utils.FTPClientFTPFilterType
Type of the filter (None, StartsWith, etc).
filterText (Optional)
Type: SystemString
The filter. - (do not use * or %)
forceOverwrite (Optional)
Type: SystemBoolean
if set to true [force overwrite].
keepOrigDateTime (Optional)
Type: SystemBoolean
if set to true touches files with FTP Date/Time and not local Creation Date/Time.
deleteAfterRetrieve (Optional)
Type: SystemBoolean
if set to true [delete after retrieve].

Return Value

Type: FWRetValString
FWRetVal int the "Record" contains number of files copied
See Also