Gio.Mount::get_drive

function vfunc_get_drive(): Gio.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.