Hi Samuli,
This is not possible. I believe it could introduce some unexpected behavior, e.g. what if the user has access only to /foo/A and also to /foo/B, would he see only /foo/A?
Showing the parent elements structure only when having at lest the read write permission might be also seen as correct behavior security wise.
Any chance the users could use the list view instead?
Regards
Roman