SftpItemCollection.GetFiles Method
Namespace: Rebex.Net
Assembly: Rebex.Common.dll (version 7.0.9147)
GetFiles(Regex)
Returns the paths of files in the collection that match the specified search pattern.
Inherited from File
Declaration
public string[] GetFiles(Regex regExp)
Parameters
Type | Name | Description |
---|---|---|
Regex | regExp | The regular expression to match the paths or filenames against. |
Returns
Type | Description |
---|---|
String[] | A String array containing the paths or names of files in the specified directory that match the specified search pattern. |
Remarks
The method works in two different modes (determined by Use
GetFiles(String, Boolean)
Returns the names of files in the collection that match the specified search pattern.
Inherited from File
Declaration
public string[] GetFiles(string searchPattern, bool caseSensitive)
Parameters
Type | Name | Description |
---|---|---|
String | searchPattern | The search string to match the items against. |
Boolean | caseSensitive | If tree, perform unix-like case-sensitive matching. |
Returns
Type | Description |
---|---|
String[] | A String array containing the names of files in the specified directory that match the specified search pattern. |
Remarks
The following wildcards are permitted in searchPattern:
* - Zero or more characters.
? - Exactly one character.
Characters other than the wildcards represent themselves.
For example, the searchPattern string "*.txt" searches for all names/paths
ending with the ".txt". The searchPattern string "s*" searches for all
names/paths beginning with the letter "s".
The method works in two different modes (determined by Use
GetFiles(String)
Returns the names of files in the collection that match the specified search pattern.
Inherited from File
Declaration
public string[] GetFiles(string searchPattern)
Parameters
Type | Name | Description |
---|---|---|
String | searchPattern | The search string to match the items against. |
Returns
Type | Description |
---|---|
String[] | A String array containing the names of files in the specified directory that match the specified search pattern. |
Remarks
The following wildcard specifiers are permitted in searchPattern:
* - Zero or more characters.
? - Exactly one character.
Characters other than the wild card specifiers represent themselves.
For example, the searchPattern string "*t" searches for all names in path
ending with the letter "t". The searchPattern string "s*" searches for all
names in path beginning with the letter "s".
The method works in two different modes (determined by Use