Returns the subdirectories of the current directory.
AlphaFS (in AlphaFS.dll) Version: 2.2
public DirectoryInfo GetDirectories()
Public Function GetDirectories As DirectoryInfo()
member GetDirectories : unit -> DirectoryInfo
An array of DirectoryInfo
If there are no subdirectories, this method returns an empty array. This method is not recursive.
The EnumerateDirectories and GetDirectories methods differ as follows: When you use EnumerateDirectories, you can start enumerating the collection of names
before the whole collection is returned; when you use GetDirectories, you must wait for the whole array of names to be returned before you can access the array.
Therefore, when you are working with many files and directories, EnumerateDirectories can be more efficient.