Volume.getDrive

gio.drive.Drive getDrive()

Gets the drive for the volume.

Returns

a #GDrive or null if volume is not

associated with a drive. The returned object should be unreffed with [gobject.object.ObjectWrap.unref] when no longer needed.