A dialog for selecting files or directories in the filesystem. [FileDialog] is a preset dialog used to choose files and directories in the filesystem. It supports filter masks. [FileDialog] automatically sets its window title according to the [member file_mode]. If you want to use a custom title, disable this by setting [member mode_overrides_title] to [code]false[/code]. Adds a comma-separated file name [param filter] option to the [FileDialog] with an optional [param description], which restricts what files can be picked. A [param filter] should be of the form [code]"filename.extension"[/code], where filename and extension can be [code]*[/code] to match any string. Filters starting with [code].[/code] (i.e. empty filenames) are not allowed. For example, a [param filter] of [code]"*.png, *.jpg"[/code] and a [param description] of [code]"Images"[/code] results in filter text "Images (*.png, *.jpg)". Adds an additional [OptionButton] to the file dialog. If [param values] is empty, a [CheckBox] is added instead. [param default_value_index] should be an index of the value in the [param values]. If [param values] is empty it should be either [code]1[/code] (checked), or [code]0[/code] (unchecked). Clear the filter for file names. Clear all the added filters in the dialog. Clear all currently selected items in the dialog. Returns the list of favorite directories, which is shared by all [FileDialog] nodes. Useful to store the list of favorites between project sessions. This method can be called only from the main thread. Returns the LineEdit for the selected file. [b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member CanvasItem.visible] property. Returns the default value index of the [OptionButton] or [CheckBox] with index [param option]. Returns the name of the [OptionButton] or [CheckBox] with index [param option]. Returns an array of values of the [OptionButton] with index [param option]. Returns the list of recent directories, which is shared by all [FileDialog] nodes. Useful to store the list of recents between project sessions. This method can be called only from the main thread. Returns a [Dictionary] with the selected values of the additional [OptionButton]s and/or [CheckBox]es. [Dictionary] keys are names and values are selected value indices. Returns the vertical box container of the dialog, custom controls can be added to it. [b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member CanvasItem.visible] property. [b]Note:[/b] Changes to this node are ignored by native file dialogs, use [method add_option] to add custom elements to the dialog instead. Invalidate and update the current dialog content list. [b]Note:[/b] This method does nothing on native file dialogs. Returns [code]true[/code] if the provided [param flag] is enabled. Toggles the specified customization [param flag], allowing to customize features available in this [FileDialog]. See [enum Customization] for options. Sets the list of favorite directories, which is shared by all [FileDialog] nodes. Useful to restore the list of favorites saved with [method get_favorite_list]. This method can be called only from the main thread. [b]Note:[/b] [FileDialog] will update its internal [ItemList] of favorites when its visibility changes. Be sure to call this method earlier if you want your changes to have effect. Sets the default value index of the [OptionButton] or [CheckBox] with index [param option]. Sets the name of the [OptionButton] or [CheckBox] with index [param option]. Sets the option values of the [OptionButton] with index [param option]. Sets the list of recent directories, which is shared by all [FileDialog] nodes. Useful to restore the list of recents saved with [method set_recent_list]. This method can be called only from the main thread. [b]Note:[/b] [FileDialog] will update its internal [ItemList] of recent directories when its visibility changes. Be sure to call this method earlier if you want your changes to have effect. The file system access scope. [b]Warning:[/b] In Web builds, FileDialog cannot access the host file system. In sandboxed Linux and macOS environments, [member use_native_dialog] is automatically used to allow limited access to host file system. The current working directory of the file dialog. [b]Note:[/b] For native file dialogs, this property is only treated as a hint and may not be respected by specific OS implementations. The currently selected file of the file dialog. The currently selected file path of the file dialog. Display mode of the dialog's file list. If [code]true[/code], shows the toggle favorite button and favorite list on the left side of the dialog. If [code]true[/code], shows the toggle file filter button. The dialog's open or save mode, which affects the selection behavior. If [code]true[/code], shows the file sorting options button. The filter for file names (case-insensitive). When set to a non-empty string, only files that contains the substring will be shown. [member filename_filter] can be edited by the user with the filter button at the top of the file dialog. See also [member filters], which should be used to restrict the file types that can be selected instead of [member filename_filter] which is meant to be set by the user. The available file type filters. Each filter string in the array should be formatted like this: [code]*.png,*.jpg,*.jpeg;Image Files;image/png,image/jpeg[/code]. The description text of the filter is optional and can be omitted. Both file extensions and MIME type should be always set. [b]Note:[/b] Embedded file dialog and Windows file dialog support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types. If [code]true[/code], shows the button for creating new directories (when using [constant FILE_MODE_OPEN_DIR], [constant FILE_MODE_OPEN_ANY], or [constant FILE_MODE_SAVE_FILE]). If [code]true[/code], shows the toggle hidden files button. If [code]true[/code], shows the layout switch buttons (list/thumbnails). If [code]true[/code], changing the [member file_mode] property will set the window title accordingly (e.g. setting [member file_mode] to [constant FILE_MODE_OPEN_FILE] will change the window title to "Open a File"). The number of additional [OptionButton]s and [CheckBox]es in the dialog. If [code]true[/code], shows the recent directories list on the left side of the dialog. If non-empty, the given sub-folder will be "root" of this [FileDialog], i.e. user won't be able to go to its parent directory. [b]Note:[/b] This property is ignored by native file dialogs. If [code]true[/code], the dialog will show hidden files. [b]Note:[/b] This property is ignored by native file dialogs on Android and Linux. If [code]true[/code], and if supported by the current [DisplayServer], OS native dialog will be used instead of custom one. [b]Note:[/b] On Android, it is only supported for Android 10+ devices and when using [constant ACCESS_FILESYSTEM]. For access mode [constant ACCESS_RESOURCES] and [constant ACCESS_USERDATA], the system will fall back to custom FileDialog. [b]Note:[/b] On Linux and macOS, sandboxed apps always use native dialogs to access the host file system. [b]Note:[/b] On macOS, sandboxed apps will save security-scoped bookmarks to retain access to the opened folders across multiple sessions. Use [method OS.get_granted_permissions] to get a list of saved bookmarks. [b]Note:[/b] Native dialogs are isolated from the base process, file dialog properties can't be modified once the dialog is shown. Emitted when the user selects a directory. Emitted when the user selects a file by double-clicking it or pressing the [b]OK[/b] button. Emitted when the filter for file names changes. Emitted when the user selects multiple files. The dialog allows selecting one, and only one file. The dialog allows selecting multiple files. The dialog only allows selecting a directory, disallowing the selection of any file. The dialog allows selecting one file or directory. The dialog will warn when a file exists. The dialog only allows accessing files under the [Resource] path ([code]res://[/code]). The dialog only allows accessing files under user data path ([code]user://[/code]). The dialog allows accessing files on the whole file system. The dialog displays files as a grid of thumbnails. Use [theme_item thumbnail_size] to adjust their size. The dialog displays files as a list of filenames. Toggles visibility of the favorite button, and the favorite list on the left side of the dialog. Equivalent to [member hidden_files_toggle_enabled]. If enabled, shows the button for creating new directories (when using [constant FILE_MODE_OPEN_DIR], [constant FILE_MODE_OPEN_ANY], or [constant FILE_MODE_SAVE_FILE]). Equivalent to [member folder_creation_enabled]. If enabled, shows the toggle file filter button. Equivalent to [member file_filter_toggle_enabled]. If enabled, shows the file sorting options button. Equivalent to [member file_sort_options_enabled]. If enabled, shows the toggle favorite button and favorite list on the left side of the dialog. Equivalent to [member favorites_enabled]. If enabled, shows the recent directories list on the left side of the dialog. Equivalent to [member recent_list_enabled]. If enabled, shows the layout switch buttons (list/thumbnails). Equivalent to [member layout_toggle_enabled]. The color tint for disabled files (when the [FileDialog] is used in open folder mode). The color modulation applied to the file icon. The color modulation applied to the folder icon. The size of thumbnail icons when [constant DISPLAY_THUMBNAILS] is enabled. Custom icon for the back arrow. Custom icon for the create folder button. Custom icon for favorite folder button. Custom icon for button to move down a favorite entry. Custom icon for button to move up a favorite entry. Custom icon for files. Icon for files when in thumbnail mode. Custom icon for folders. Icon for folders when in thumbnail mode. Custom icon for the forward arrow. Icon for the button that enables list mode. Custom icon for the parent folder arrow. Custom icon for the reload button. Custom icon for the sorting options menu. Icon for the button that enables thumbnail mode. Custom icon for the toggle button for the filter for file names. Custom icon for the toggle hidden button.