Skip to main content

Arguments

DialogOptions
Optional table. For openfiledialog, title, defaultPath, and extensionFilter are used. extensionFilter is a table of extension strings; leading . or *. is stripped before each filter becomes *.<extension>.

Returns

FileSystemItem | nil
Selected file item, or nil when the dialog is cancelled or no selected filesystem path is returned. Dialog failures throw Failed to open file dialog.

Types

DialogOptions

Configures the Windows file or folder selection dialog.

Example

Open a file picker and handle the selected file item or cancellation.