Gio.Drive.prototype.has_volumes

function has_volumes(): Boolean {
    // Gjs wrapper for g_drive_has_volumes()
}
  

Check if drive has any mountable volumes.

Returns

true if the drive contains volumes, false otherwise.