File: csharp.actual

package info (click to toggle)
golang-github-alecthomas-chroma 0.6.3%2Breally0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 2,224 kB
  • sloc: python: 206; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 265 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
DriveInfo[] drives = DriveInfo.GetDrives();
foreach (DriveInfo drive in drives)
{
  IEnumerable<string> driveFolders =
    Directory.EnumerateDirectories(drive.RootDirectory.ToString());

  foreach (string dir in driveFolders)
  {
    Console.WriteLine(dir);
  }
}