 | 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
Syntaxpublic static FWRetVal<string> CheckForFiles(
string strHost,
string strUserName,
string strPassword,
string serverPath,
FTPFilterType filterType,
string filterText = null
)
Public Shared Function CheckForFiles (
strHost As String,
strUserName As String,
strPassword As String,
serverPath As String,
filterType As FTPFilterType,
Optional filterText As String = Nothing
) As FWRetVal(Of String)
public:
static FWRetVal<String^>^ CheckForFiles(
String^ strHost,
String^ strUserName,
String^ strPassword,
String^ serverPath,
FTPFilterType filterType,
String^ filterText = nullptr
)
static member CheckForFiles :
strHost : string *
strUserName : string *
strPassword : string *
serverPath : string *
filterType : FTPFilterType *
?filterText : string
(* Defaults:
let _filterText = defaultArg filterText null
*)
-> FWRetVal<string>
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