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