Click or drag to resize

SFTPCheckForFiles Method (String, String, String, String, FTPFilterType, String)

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> CheckForFiles(
	string strHost,
	string strUserName,
	string strPassword,
	string serverPath,
	FTPFilterType filterType,
	string filterText = null
)

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
filterType
Type: Koden.Utils.FTPClientFTPFilterType
Type of the filter (None, StartsWith, etc).
filterText (Optional)
Type: SystemString
The filter. - (do not use * or %)

Return Value

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