Does the ui module have any facility for a dialog where the user can choose a folder rather than a file? If so, I have use for it in advance of the full ui documentation (path configuration, etc.). If not, I would request the appropriate dialog be added to the ui module.