hexagon logo

Folder selection using ui_file_create

I would like to select a folder PCL methods, I have used "ui_file_create" but its selecting only the files. Please suggest a method to select the folder.