|
FilePath.GetDirectories(String, String, SearchOption, Action<Exception> ) Method
|
Returns the names of the subdirectories (including their paths) that match the specified search pattern in the specified directory, and optionally searches subdirectories.
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.245-beta+94213ae9d4d0aa7a2c48e5398b12d267b99f868a
Syntaxstatic member GetDirectories :
path : string *
?searchPattern : string *
?searchOption : SearchOption *
?exceptionHandler : Action<Exception>
(* Defaults:
let _searchPattern = defaultArg searchPattern "*"
let _searchOption = defaultArg searchOption SearchOption.AllDirectories
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> string[]
GSF.IO.FilePath.GetDirectories = function(path, searchPattern, searchOption, exceptionHandler);
View SourceParameters
- path String
- The relative or absolute path to the directory to search. This string is not case-sensitive.
- searchPattern String (Optional)
- The search string to match against the names of subdirectories in path. This parameter can contain a combination of valid literal and wildcard characters, but doesn't support regular expressions.
- searchOption SearchOption (Optional)
- One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory.
- exceptionHandler Action<Exception> (Optional)
- Handles exceptions thrown during directory enumeration.
Return Value
String[]An array of the full names (including paths) of the subdirectories that match the specified criteria, or an empty array if no directories are found.
See Also