title: C# retrieving subdirectories from selected directory
body: <p>I am trying to find a way to retrieve the subfolders from a selected directory. I have used FolderBrowserDialog inside of my code to all the user to select the "root" directory that the program will be using. But I am stuck on how to get the subdirectories from that. I want to plce these subdirectory string names inside an array to be used later. I tried using Directory.getFiles("the selected path"), but this does not display the subdirectories. 
  Any help is greatly appreciated! Thank you</p>
  
  <pre><code> private void Folderselector_Click(object sender, EventArgs e)
      {
          FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog();
          if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
          {
              listView1.Items.Clear();
              string[] files = Directory.GetFiles(folderBrowserDialog1.SelectedPath);
              foreach (string file in files)
              {
                  string fileName = Path.GetFileNameWithoutExtension(file);
                  ListViewItem item = new ListViewItem(fileName);
                  item.Tag = file;
                  listView1.Items.Add(item);
              }
          }
      }
  </code></pre>