Class DirectoryWrapper
Implements
Inherited Members
Namespace: LemonEdge.DesktopTools.Wrappers
Assembly: LemonEdge.DesktopTools.dll
Syntax
public class DirectoryWrapper : IDirectoryWrapper
Constructors
DirectoryWrapper()
Declaration
public DirectoryWrapper()
Methods
GetFiles(string, string)
Gets an array of file names in the specified directory that match the specified search pattern.
Declaration
public string[] GetFiles(string path, string searchPattern)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the directory to search. |
string | searchPattern | The search pattern to match against the names of files in the directory. |
Returns
Type | Description |
---|---|
string[] | An array of the full names (including paths) of files that match the specified search pattern. |
GetFiles(string, string, SearchOption)
Gets an array of file names in the specified directory that match the specified search pattern and search option.
Declaration
public string[] GetFiles(string path, string searchPattern, SearchOption searchOption)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the directory to search. |
string | searchPattern | The search pattern to match against the names of files in the directory. |
SearchOption | searchOption | One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory. |
Returns
Type | Description |
---|---|
string[] | An array of the full names (including paths) of files that match the specified search pattern and option. |