Choose folder through Gioui

I need something in gioui for picking a folder.
I can pick a file by using gioui explorer.ChooseFile. Thereafter, I can find the selected file’s folder path by using a string parsing. However, this approach cannot work for empty folders.
Any suggestions?
Thanks.

Hello,
To pick a folder in GioUI, consider creating a custom folder picker component. Since* explorer.ChooseFile *doesn’t handle empty folders, a custom picker can navigate directories and select folders directly, avoiding the need for string parsing. Wake County Public School System

Best Regards,
James Henry