add support for getting directories via the collection paths