Gio.Drive.prototype.has_media

function has_media(): Boolean {
    // Gjs wrapper for g_drive_has_media()
}
  

Checks if the drive has media. Note that the OS may not be polling the drive for media changes; see Gio.Drive.prototype.is_media_check_automatic for more details.

Returns

true if drive has media, false otherwise.