Function Directory.getDriveCount

On Windows, returns the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0.

long getDriveCount() nothrow @nogc;