Check out example codes for "get folders in directory c#". It will help you in understanding the concepts better.

Code Example 1

string[] folders = System.IO.Directory.GetDirectories(@"C:\My Sample Path\","*", System.IO.SearchOption.AllDirectories);

Learn ReactJs, React Native from akashmittal.com