The following content selector will allow you to upload artifacts under "/com/bar/"
But it will not allow you to see the uploaded content in the tree view. In order for that to work you need to leave the first slash off the path:
But even then, you won't be able to traverse into "bar" in the tree view due to the slash in front of it.
To allow for both the tree view and read/write to work you need:
The tree view should respect the same content selectors that repository content uses.