You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: SearchOnDirectory

In order to look for files located in a given directory use the standard search method with __directoryName and __level terms specified in the query parameter.


Download all files located in /movies directory which names end with .avi:

curl \
	-X GET http://localhost:8080/fs/NorthwindFS/search?query=__directory:/movies%20AND%20__level:2%20AND%20__rfileName:iva.*
< HTTP/1.1 200 OK
                // ...
                // ...
            "HumaneTotalSize":"1.31 KBytes"