Gio.Volume.prototype.mount_finish

function mount_finish(result: Gio.AsyncResult): Boolean {
    // Gjs wrapper for g_volume_mount_finish()
}
  

Finishes mounting a volume. If any errors occurred during the operation, @error will be set to contain the errors and false will be returned.

If the mount operation succeeded, Gio.Volume.prototype.get_mount on volume is guaranteed to return the mount right after calling this function; there's no need to listen for the 'mount-added' signal on Gio.VolumeMonitor.

result

a Gio.AsyncResult

Returns

true, false if operation failed