mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-21 19:06:18 +02:00
12 lines
265 B
Plaintext
12 lines
265 B
Plaintext
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);
|
|
}
|
|
}
|