Skip to main content

인수

DialogOptions
Optional table. openfolderdialog 에서는 title 과 defaultPath 가 사용됩니다. defaultPath 는 existing directory 로 resolve 될 때만 적용됩니다. 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 을 처리합니다.