Drive.canEject

bool canEject()

Checks if a drive can be ejected.

Returns

true if the drive can be ejected, false otherwise.