Jeff
Jeff

Reputation: 36573

Azure File Storage Fetch All Files Recursively in a Single Request

The REST API documentation for the Azure File Service indicates that it can take a prefix for ListDirectoriesAndfiles(), but this only seems to only return direct descendants. Is it possible to get all descendants in a single request like it is with Blob storage?

Upvotes: 1

Views: 1493

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136196

Is it possible to get all descendants in a single request like it is with Blob storage?

No. The operation will list only 1 level of descendants. Essentially ListDirectoriesAndfiles() is a wrapper over List Directories and Files REST API operation. From the REST API documentation:

The List Directories and Files operation returns a list of files or directories under the specified share or directory. It lists the contents only for a single level of the directory hierarchy.

Upvotes: 1

Related Questions