-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storage] az storage copy: Add parameter --content-type to fix#6466 #12237
Conversation
There is an issue with azcopy 10.3 and the content-type cannot work as expected. Let's merge it when azcopy is ready. |
@@ -507,6 +507,8 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem | |||
c.argument('exclude_path', exclude_path_type) | |||
c.argument('include_path', include_path_type) | |||
c.argument('recursive', recursive_type) | |||
c.argument('content_type', arg_group='Additional Flags', help="Specify content type of the file. " | |||
"Implies no-guess-mime-type.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can use imperative mood for alignment? Also, "Implies" isn't very intuitive to me. Possibly "If unspecified, ..."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We misunderstood it! 😰 It means if --content-type
is given, --no-guess-mime-type
is implied.
add to S167 |
@@ -557,6 +557,8 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem | |||
c.argument('exclude_path', exclude_path_type) | |||
c.argument('include_path', include_path_type) | |||
c.argument('recursive', recursive_type) | |||
c.argument('content_type', arg_group='Additional Flags', help="Specify content type of the file. " | |||
"If unspecified, imply no-guess-mime-type.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy#options
"If unspecified, imply no-guess-mime-type.") | |
"If unspecified, imply --no-guess-mime-type.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
History Notes:
(Fill in the following template if multiple notes are needed, otherwise PR title will be used for history note.)
[Component Name 1] (BREAKING CHANGE:) (az command:) make some customer-facing change.
[Component Name 2] (BREAKING CHANGE:) (az command:) make some customer-facing change.
Fix #6466
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.