VDirectory.GetFiles Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9448)
GetFiles(String)
Returns an array that contains full paths to files that are located in the directory identified by the path.
Declaration
public static string[] GetFiles(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to the directory that contains files that should be returned. |
Returns
| Type | Description |
|---|---|
| String[] | An array that contains files located in the directory identified by the |
GetFiles(String, String)
Returns an array that contains full paths to files
that are located in the directory identified by the path
and their name matches the given searchPattern.
Declaration
public static string[] GetFiles(string path, string searchPattern)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to the directory that contains files that should be returned. |
| String | searchPattern | The search pattern to which the name of the returned file must conform. Search patterns may include '?' and '*' wildcards. |
Returns
| Type | Description |
|---|---|
| String[] | An array that contains files located in the directory identified by the |
GetFiles(String, String, SearchOption)
Returns an array that contains full paths to files
that are located in the directory identified by the path
and their name matches the given searchPattern.
When the searchPattern has value AllDirectories then this method returns all files recursively;
otherwise returns only files on the first level of the hierarchy.
Declaration
public static string[] GetFiles(string path, string searchPattern, SearchOption searchOption)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to the directory that contains files that should be returned. |
| String | searchPattern | The search pattern to which the name of the returned file must conform. Search patterns may include '?' and '*' wildcards. |
| SearchOption | searchOption | When the searchOption has value AllDirectories then this method returns all files recursively; otherwise returns only files on the first level of the hierarchy. |
Returns
| Type | Description |
|---|---|
| String[] | An array that contains files located in the directory identified by the |