Method GetDirectories
GetDirectories(string?)
Gets the names of subdirectories (including their paths) in the specified directory.
public static string[] GetDirectories(string? path)
Parameters
path
stringThe path (relative or absolute) to the directory to search. Value is not case-sensitive.
Returns
- string[]
An array of the full names (with paths) of subdirectories in the specified path, or an empty array if no directories are found.