Skip to main content

인수

DialogOptions
Optional table입니다. openfiledialog에서는 title, defaultPath, extensionFilter가 사용됩니다. extensionFilter는 extension strings의 table입니다. 각 filter가 *.<extension>이 되기 전에 앞의 . 또는 *.가 제거됩니다.

반환값

FileSystemItem | nil
Selected file item 또는 dialog가 취소되거나 selected filesystem path가 반환되지 않을 때 nil입니다. Dialog failures는 Failed to open file dialog를 throw합니다.

타입

DialogOptions

기본 파일 또는 폴더 선택 대화 상자를 구성합니다.

예제

file picker를 열고 selected file item 또는 cancellation을 처리합니다.