Skip to content

Commit daf9563

Browse files
authored
[Storage] Fix issue 14234 (#14266)
1 parent 55f0be8 commit daf9563

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
- `New-AzStorageEncryptionScope`
3535
* Supported copy block blob synchronously, with encryption scope
3636
- `Copy-AzStorageBlob`
37+
* Fixed issue that Get-AzStorageBlobContent use wrong directory separator char on Linux and MacOS [#14234]
3738

3839
## Version 3.3.0
3940
* Supported RoutingPreference settings in create/update Storage account

src/Storage/Storage/Common/BlobToFileSystemNameResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected override string DirSeparator
3737
{
3838
get
3939
{
40-
return "\\";
40+
return Path.DirectorySeparatorChar.ToString();
4141
}
4242
}
4343

src/Storage/Storage/Common/NameUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public static string ConvertBlobNameToFileName(string blobName, DateTimeOffset?
271271
//replace dirctionary
272272
Dictionary<string, string> replaceRules = new Dictionary<string, string>()
273273
{
274-
{"/", "\\"}
274+
{"/", Path.DirectorySeparatorChar.ToString()}
275275
};
276276

277277
foreach (KeyValuePair<string, string> rule in replaceRules)

0 commit comments

Comments
 (0)