openfiledialog, but the user
may select more than one file. Returns an array of full paths, empty on cancel.
Dialog results are full machine paths, not workspace paths, so they cannot
be passed to
readfile and friends.Parameters
table
A map of description to pattern, e.g.
{ ["Lua files"] = "*.lua" }. Omit it
and the dialog offers All files (*.*).string
The dialog’s window title.
Returns
table
An array of the chosen full paths, in the order Windows reported them. Empty if
the user cancelled.
Behavior
- One selection still returns an array of one entry, so you do not need to handle the single case differently.
- Every file must exist.
- It blocks while open.
Example
Related
openfiledialog: pick one file.