Skip to content
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]Fixed an issue of escaping slashes in blob name unnecessarily. #23461

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

EmmaZhu
Copy link
Contributor

@EmmaZhu EmmaZhu commented Oct 10, 2022

Packages impacted by this PR

@azure/storage-blob
@azure/storage-file-datalake
@azure/storage-file-share

Issues associated with this PR

Describe the problem that is addressed by this PR

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Oct 10, 2022
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

/**
* Escape the file or directory name but keep path separator ('/').
*/
export function EscapePath(pathName: string): string {
Copy link
Member

Choose a reason for hiding this comment

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

May consider to add test for path with or without /.

@EmmaZhu EmmaZhu merged commit ef9938a into main Oct 13, 2022
@EmmaZhu EmmaZhu deleted the storage/name_slash_encode branch October 13, 2022 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants