Gio.Drive.prototype.get_volumes

function get_volumes(): Array(Gio.Volume) {
    // Gjs wrapper for g_drive_get_volumes()
}
  

Get a list of mountable volumes for drive.

The returned list should be freed with GLib.List.free, after its elements have been unreffed with GObject.Object.prototype.unref.

Returns

GLib.List containing any Gio.Volume objects on the given drive.