Gio.VolumeMonitor.prototype.get_mounts

function get_mounts(): Array(Gio.Mount) {
    // Gjs wrapper for g_volume_monitor_get_mounts()
}
  

Gets a list of the mounts on the system.

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

Returns

a GLib.List of Gio.Mount objects.