Gio.Volume.prototype.get_drive

function get_drive(): Gio.Drive {
    // Gjs wrapper for g_volume_get_drive()
}
  

Gets the drive for the volume.

Returns

a Gio.Drive or null if volume is not associated with a drive. The returned object should be unreffed with GObject.Object.prototype.unref when no longer needed.