Gtk.FileChooser.prototype.get_action

function get_action():Gtk.FileChooserAction {
    // Gjs wrapper for gtk_file_chooser_get_action()
}

Gets the type of operation that the file chooser is performing; see Gtk.set_action.

Since 2.4

Returns

the action that the file selector is performing