Skip to main content

Arguments

DialogOptions
Optional table. For openfolderdialog, title and defaultPath are used. defaultPath is applied only when it resolves to an existing directory. extensionFilter is accepted by the shared dialog options parser but folder selection is enabled with folder selection mode.

Returns

FileSystemItem | nil
Selected folder item, or nil when the dialog is cancelled. Dialog failures throw Failed to open folder dialog.

Types

DialogOptions

Configures the Windows file or folder selection dialog.

Example

Let the user select a folder and handle the selected folder item or cancellation.