Gio.VolumeMonitor.prototype.get_connected_drives

function get_connected_drives(): Array(Gio.Drive) {
    // Gjs wrapper for g_volume_monitor_get_connected_drives()
}
  

Gets a list of drives connected to 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 connected Gio.Drive objects.