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: GetDirectories

The GET method is designated to retrieve the paths of subdirectories of a specified directory.

Syntax

curl \
	http://{serverUrl}/fs/{fileSystemName}/folders/subdirectories/{directory}?start={start}&pageSize={pageSize}  \
	-X GET

Request

Query parameter Required Description
directory Yes The directory path (empty value means the root directory)
start No The number of results that should be skipped (for paging purposes)
pageSize No The max number of results to get

Response

Status code Description
200 OK
Return Value Description
Array The response consists of array of subdirectory paths.

Example

curl \
	-X GET http://localhost:8080/fs/NorthwindFS/folders/subdirectories
< HTTP/1.1 200 OK
["/books","/movies","/pdfs"]