Drive.hasVolumes

bool hasVolumes()

Check if drive has any mountable volumes.

Returns

true if the drive contains volumes, false otherwise.