Skip to main content

引数

DialogOptions
Optional table. openfolderdialog では title と defaultPath が使用されます。defaultPath は existing directory に解決された場合だけ適用されます。extensionFilter は shared dialog options parser に受け入れられますが、folder selection は folder selection mode で有効化されます。

戻り値

FileSystemItem | nil
Selected folder item、または dialog がキャンセルされた場合は nil。Dialog failures は Failed to open folder dialog を throw します。

型

DialogOptions

ネイティブ ファイルまたはフォルダーの選択ダイアログを構成します。

例

folder picker を開き、selected folder item または cancellation を処理します。