Reputation: 230
I know how to list files in a specific path but I want to get a list of all directories. Is it possible ?
Upvotes: 1
Views: 2315
Reputation: 1554
The easiest way is to use AQL. For example, to find all folders in repo myrepo under the path foo/bar/, use the following query:
myrepo
foo/bar/
items.find({"repo":"myrepo","path":{"$match":"foo/bar/*"},"type":"folder"})
Upvotes: 7