Drive.hasMedia

bool hasMedia()

Checks if the drive has media. Note that the OS may not be polling the drive for media changes; see [gio.drive.Drive.isMediaCheckAutomatic] for more details.

Returns

true if drive has media, false otherwise.