Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,17 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
* items.
*/
Azure::Nullable<int32_t> PageSizeHint;

/**
* Include this parameter to specify one or more datasets to include in the response.
*/
Models::ListFilesIncludeType Include = Models::ListFilesIncludeType ::None;

/**
* This header is implicitly assumed to be true if include query parameter is not empty. If
* true, the Content-Length property will be up to date.
*/
Nullable<bool> IncludeExtendedInfo;
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
* File items.
*/
std::vector<Models::FileItem> Files;
/**
* FileId of the directory.
*/
std::string DirectoryId;

private:
void OnNextPage(const Azure::Core::Context& context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
protocolLayerOptions.Prefix = options.Prefix;
protocolLayerOptions.Marker = options.ContinuationToken;
protocolLayerOptions.MaxResults = options.PageSizeHint;
protocolLayerOptions.Include = options.Include;
protocolLayerOptions.IncludeExtendedInfo = options.IncludeExtendedInfo;
auto response = _detail::DirectoryClient::ListFilesAndDirectoriesSegment(
*m_pipeline, m_shareDirectoryUrl, protocolLayerOptions, context);

Expand All @@ -439,6 +441,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
pagedResponse.Prefix = std::move(response.Value.Prefix);
pagedResponse.Directories = std::move(response.Value.Segment.DirectoryItems);
pagedResponse.Files = std::move(response.Value.Segment.FileItems);
pagedResponse.DirectoryId = response.Value.DirectoryId.ValueOr(std::string());
pagedResponse.m_shareDirectoryClient = std::make_shared<ShareDirectoryClient>(*this);
pagedResponse.m_operationOptions = options;
pagedResponse.CurrentPageToken = options.ContinuationToken.ValueOr(std::string());
Expand Down
Loading