My directory structure is like below.
Parent directory
---Sub directory 1
---Sub directory 2
------Sub directory2a
------Sub directory2b
---Sub directory 3
You need to use the overloaded version of Directory.GetFileSystemEntries that specifies whether or not to search subdirectories:
Dim allDirectories As String() = Directory.GetFileSystemEntries("path", "*", SearchOption.AllDirectories)
Directory.GetFileSystemEntries Method (String, String, SearchOption)