Skip to content

Commit

Permalink
[Storage] Fix issue 14234 (#14266)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueww authored Feb 22, 2021
1 parent 55f0be8 commit daf9563
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Storage/Storage.Management/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- `New-AzStorageEncryptionScope`
* Supported copy block blob synchronously, with encryption scope
- `Copy-AzStorageBlob`
* Fixed issue that Get-AzStorageBlobContent use wrong directory separator char on Linux and MacOS [#14234]

## Version 3.3.0
* Supported RoutingPreference settings in create/update Storage account
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage/Common/BlobToFileSystemNameResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected override string DirSeparator
{
get
{
return "\\";
return Path.DirectorySeparatorChar.ToString();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage/Common/NameUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public static string ConvertBlobNameToFileName(string blobName, DateTimeOffset?
//replace dirctionary
Dictionary<string, string> replaceRules = new Dictionary<string, string>()
{
{"/", "\\"}
{"/", Path.DirectorySeparatorChar.ToString()}
};

foreach (KeyValuePair<string, string> rule in replaceRules)
Expand Down

0 comments on commit daf9563

Please sign in to comment.