Function Directory.getCurrentDrive

Returns the currently opened directory's drive index. See getDrive to convert returned index to the name of the drive.

long getCurrentDrive() nothrow @nogc;