Added GetSubDirectory. (#524)
This commit is contained in:
parent
9c9e631c0d
commit
b87bd0816c
@ -72,6 +72,13 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
FileClient GetFileClient(const std::string& path) const;
|
||||
|
||||
/**
|
||||
* @brief Create a DirectoryClient from current DirectoryClient
|
||||
* @param path Path of the directory under the current directory.
|
||||
* @return DirectoryClient
|
||||
*/
|
||||
DirectoryClient GetSubDirectoryClient(const std::string& path) const;
|
||||
|
||||
/**
|
||||
* @brief Gets the directory's primary uri endpoint. This is the endpoint used for blob
|
||||
* storage available features in DataLake.
|
||||
|
||||
@ -131,6 +131,15 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
return FileClient(std::move(builder), std::move(blobClient), m_pipeline);
|
||||
}
|
||||
|
||||
DirectoryClient DirectoryClient::GetSubDirectoryClient(const std::string& path) const
|
||||
{
|
||||
auto builder = m_dfsUri;
|
||||
builder.AppendPath(path, true);
|
||||
auto blobClient = m_blobClient;
|
||||
blobClient.m_blobUrl.AppendPath(path, true);
|
||||
return DirectoryClient(std::move(builder), std::move(blobClient), m_pipeline);
|
||||
}
|
||||
|
||||
Azure::Core::Response<RenameDirectoryResult> DirectoryClient::Rename(
|
||||
const std::string& destinationPath,
|
||||
const RenameDirectoryOptions& options) const
|
||||
|
||||
Loading…
Reference in New Issue
Block a user