Gio.Mount.prototype.get_drive

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

Gets the drive for the mount.

This is a convenience method for getting the Gio.Volume and then using that object to get the Gio.Drive.

Returns

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