I don’t think there is a setting in file manager which would allow you to select a directory. What you could do instead is:
Maybe other makers have used such a widget which I miss :)
Also, check if this File dropper widget helps in any way for your potential use case:
https://marketplace.mendix.com/link/component/111497
Hope this helps!