My directory structure is like below.
Parent directory
—Sub directory 1
—Sub directory 2
——Sub directory2a
——Sub directory2b
—Sub directory 3
I am writing in VB.net to fetch all the directory names (including sub directories in all the levels)
However while using directory.getfilesystementries(path) I am getting only the top level sub directories. Any idea on how to fetch all the subdirectory names of all sub levels?
just use something like this:
the trick is the
SearchOption.AllDirectoriesBTW: you can do the same with your GetFileSystemEntries-Method