diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp index 5c2f70d74..8bf5a1975 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp @@ -25,14 +25,14 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { * @brief Create from connection string * @param connectionString Azure Storage connection string. * @param fileSystemName The name of a file system. - * @param directoryPath The path of a directory within the file system. + * @param directoryName The name of a directory within the file system. * @param options Optional parameters used to initialize the client. * @return DataLakeDirectoryClient */ static DataLakeDirectoryClient CreateFromConnectionString( const std::string& connectionString, const std::string& fileSystemName, - const std::string& directoryPath, + const std::string& directoryName, const DataLakeClientOptions& options = DataLakeClientOptions()); /** @@ -68,17 +68,17 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { /** * @brief Create a FileClient from current DataLakeDirectoryClient - * @param path Path of the file under the directory. + * @param fileName Name of the file under the directory. * @return FileClient */ - DataLakeFileClient GetFileClient(const std::string& path) const; + DataLakeFileClient GetFileClient(const std::string& fileName) const; /** * @brief Create a DataLakeDirectoryClient from current DataLakeDirectoryClient - * @param path Path of the directory under the current directory. + * @param subdirectoryName Name of the directory under the current directory. * @return DataLakeDirectoryClient */ - DataLakeDirectoryClient GetSubdirectoryClient(const std::string& path) const; + DataLakeDirectoryClient GetSubdirectoryClient(const std::string& subdirectoryName) const; /** * @brief Gets the directory's primary uri endpoint. This is the endpoint used for blob diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp index 1ee48a522..6d523c577 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp @@ -26,14 +26,14 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { * @brief Create from connection string * @param connectionString Azure Storage connection string. * @param fileSystemName The name of a file system. - * @param filePath The path of a file within the file system. + * @param fileName The name of a file within the file system. * @param options Optional parameters used to initialize the client. * @return DataLakeFileClient */ static DataLakeFileClient CreateFromConnectionString( const std::string& connectionString, const std::string& fileSystemName, - const std::string& filePath, + const std::string& fileName, const DataLakeClientOptions& options = DataLakeClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp index b178ec14c..e79131584 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp @@ -70,24 +70,24 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { /** * @brief Create a DataLakePathClient from current DataLakeFileSystemClient - * @param path Path of the resource within the file system. + * @param path Name of path within the file system. * @return DataLakePathClient */ DataLakePathClient GetPathClient(const std::string& path) const; /** * @brief Create a DataLakeFileClient from current DataLakeFileSystemClient - * @param path Path of the file within the file system. + * @param fileName Name of the file within the file system. * @return DataLakeFileClient */ - DataLakeFileClient GetFileClient(const std::string& path) const; + DataLakeFileClient GetFileClient(const std::string& fileName) const; /** * @brief Create a DataLakeDirectoryClient from current DataLakeFileSystemClient - * @param path Path of the directory within the file system. + * @param directoryName Name of the directory within the file system. * @return DataLakeDirectoryClient */ - DataLakeDirectoryClient GetDirectoryClient(const std::string& path) const; + DataLakeDirectoryClient GetDirectoryClient(const std::string& directoryName) const; /** * @brief Gets the filesystem's primary uri endpoint. This is the endpoint used for blob diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp index 3337f79a5..48221192d 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp @@ -20,13 +20,13 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { DataLakeDirectoryClient DataLakeDirectoryClient::CreateFromConnectionString( const std::string& connectionString, const std::string& fileSystemName, - const std::string& path, + const std::string& directoryName, const DataLakeClientOptions& options) { auto parsedConnectionString = Azure::Storage::Details::ParseConnectionString(connectionString); auto directoryUri = std::move(parsedConnectionString.DataLakeServiceUrl); directoryUri.AppendPath(Storage::Details::UrlEncodePath(fileSystemName)); - directoryUri.AppendPath(Storage::Details::UrlEncodePath(path)); + directoryUri.AppendPath(Storage::Details::UrlEncodePath(directoryName)); if (parsedConnectionString.KeyCredential) { @@ -126,24 +126,24 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { m_pipeline = std::make_shared(policies); } - DataLakeFileClient DataLakeDirectoryClient::GetFileClient(const std::string& path) const + DataLakeFileClient DataLakeDirectoryClient::GetFileClient(const std::string& fileName) const { auto builder = m_dfsUri; - builder.AppendPath(Storage::Details::UrlEncodePath(path)); + builder.AppendPath(Storage::Details::UrlEncodePath(fileName)); auto blobClient = m_blobClient; - blobClient.m_blobUrl.AppendPath(Storage::Details::UrlEncodePath(path)); + blobClient.m_blobUrl.AppendPath(Storage::Details::UrlEncodePath(fileName)); auto blockBlobClient = blobClient.AsBlockBlobClient(); return DataLakeFileClient( std::move(builder), std::move(blobClient), std::move(blockBlobClient), m_pipeline); } DataLakeDirectoryClient DataLakeDirectoryClient::GetSubdirectoryClient( - const std::string& path) const + const std::string& subdirectoryName) const { auto builder = m_dfsUri; - builder.AppendPath(Storage::Details::UrlEncodePath(path)); + builder.AppendPath(Storage::Details::UrlEncodePath(subdirectoryName)); auto blobClient = m_blobClient; - blobClient.m_blobUrl.AppendPath(Storage::Details::UrlEncodePath(path)); + blobClient.m_blobUrl.AppendPath(Storage::Details::UrlEncodePath(subdirectoryName)); return DataLakeDirectoryClient(std::move(builder), std::move(blobClient), m_pipeline); } diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp index 2813a0071..759da9a06 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp @@ -87,13 +87,13 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { DataLakeFileClient DataLakeFileClient::CreateFromConnectionString( const std::string& connectionString, const std::string& fileSystemName, - const std::string& filePath, + const std::string& fileName, const DataLakeClientOptions& options) { auto parsedConnectionString = Azure::Storage::Details::ParseConnectionString(connectionString); auto fileUri = std::move(parsedConnectionString.DataLakeServiceUrl); fileUri.AppendPath(Storage::Details::UrlEncodePath(fileSystemName)); - fileUri.AppendPath(Storage::Details::UrlEncodePath(filePath)); + fileUri.AppendPath(Storage::Details::UrlEncodePath(fileName)); if (parsedConnectionString.KeyCredential) { diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp index c4ef489b8..3d72b3d67 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp @@ -167,23 +167,24 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { return DataLakePathClient(builder, m_blobContainerClient.GetBlobClient(path), m_pipeline); } - DataLakeFileClient DataLakeFileSystemClient::GetFileClient(const std::string& path) const + DataLakeFileClient DataLakeFileSystemClient::GetFileClient(const std::string& fileName) const { auto builder = m_dfsUri; - builder.AppendPath(Storage::Details::UrlEncodePath(path)); - auto blobClient = m_blobContainerClient.GetBlobClient(path); + builder.AppendPath(Storage::Details::UrlEncodePath(fileName)); + auto blobClient = m_blobContainerClient.GetBlobClient(fileName); auto blockBlobClient = blobClient.AsBlockBlobClient(); return DataLakeFileClient( std::move(builder), std::move(blobClient), std::move(blockBlobClient), m_pipeline); } DataLakeDirectoryClient DataLakeFileSystemClient::GetDirectoryClient( - const std::string& path) const + const std::string& directoryName) const { auto builder = m_dfsUri; - builder.AppendPath(Storage::Details::UrlEncodePath(path)); - return DataLakeDirectoryClient(builder, m_blobContainerClient.GetBlobClient(path), m_pipeline); + builder.AppendPath(Storage::Details::UrlEncodePath(directoryName)); + return DataLakeDirectoryClient( + builder, m_blobContainerClient.GetBlobClient(directoryName), m_pipeline); } Azure::Core::Response DataLakeFileSystemClient::Create(