I would like to write a function that would prompt the user to select a directory, using an UI like that presented by counsel-find-file
.
The starting directory should be an arbitrary directory passed to this function as an argument.
This function should only show the user directories, not files, and the user should be able to navigate up and down the filesystem just as in counsel-find-file
.
When the user makes their selection by hitting the RETURN
key, the path to the selected directory should be returned to the calling function.