Skip to content

[Storage] az storage fs directory upload/download: Support adls gen2 file system directory upload&download - #17292

Merged
Yishi Wang (evelyn-ys) merged 18 commits into
Azure:devfrom
evelyn-ys:fs_directory_upload_download
Mar 22, 2021
Merged

Yishi Wang (evelyn-ys) merged 18 commits into
Azure:devfrom
evelyn-ys:fs_directory_upload_download

Conversation

@evelyn-ys

@evelyn-ys Yishi Wang (evelyn-ys) commented Mar 12, 2021

Copy link
Copy Markdown
Contributor

Description

Feature request from #15200

Testing Guide

az storage fs directory upload
az storage fs directory download

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan

Copy link
Copy Markdown
Collaborator

Storage

@yonzhan Yong Zhang (yonzhan) added this to the S184 milestone Mar 12, 2021
@evelyn-ys
Yishi Wang (evelyn-ys) marked this pull request as ready for review March 16, 2021 10:15
Comment thread src/azure-cli/azure/cli/command_modules/storage/_params.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/storage/_params.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/storage/_validators.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/storage/_validators.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/storage/_params.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/storage/operations/azcopy.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/storage/_validators.py Outdated
Comment on lines +1599 to +1601
file_client = client.get_file_client(file_path=namespace.destination_path)
try:
props = file_client.get_file_properties()

@Juliehzl Zunli Hu (Juliehzl) Mar 19, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure it works for both file and directory scenario. There are two clients in datalake: FileClient and DirectoryClient.

@evelyn-ys Yishi Wang (evelyn-ys) Mar 19, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Both file and directory can work well with file client. The props returned can distinguish directory from file.

Comment thread src/azure-cli/azure/cli/command_modules/storage/_validators.py
Comment thread src/azure-cli/azure/cli/command_modules/storage/_validators.py
@evelyn-ys
Yishi Wang (evelyn-ys) merged commit 45d53d3 into Azure:dev Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants