gtkFileChooserGetCurrentFolderUri {RGtk2} | R Documentation

## gtkFileChooserGetCurrentFolderUri

### Description

Gets the current folder of `chooser` as an URI. See `gtkFileChooserSetCurrentFolderUri`.

### Usage

    gtkFileChooserGetCurrentFolderUri(object)

### Arguments

``object`` | a `GtkFileChooser`

### Details

Note that this is the folder that the file chooser is currently displaying (e.g. "file:///home/username/Documents"), which is not the same as the currently-selected folder if the chooser is in `GTK_FILE_CHOOSER_SELECT_FOLDER` mode (e.g. "file:///home/username/Documents/selected-folder/". To get the currently-selected folder in that mode, use `gtkFileChooserGetUri` as the usual way to get the selection. Since 2.4

### Value

[character] the URI for the current folder. This function will also return `NULL` if the file chooser was unable to load the last folder that was requested from it; for example, as would be for calling `gtkFileChooserSetCurrentFolderUri` on a nonexistent folder.

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.36.3 Index]