Skip to content

Commit

Permalink
Use OS directory seperator char to split the basePath in Azure storag…
Browse files Browse the repository at this point in the history
…e device
  • Loading branch information
PaulusParssinen committed Apr 22, 2024
1 parent d8424d4 commit b5fd3d8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT license.

using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -47,9 +48,9 @@ public void Initialize(string baseName)

async Task InitializeAsync(string baseName)
{
var path = baseName.Split('/');
var path = baseName.Split(Path.DirectorySeparatorChar);
var containerName = path[0];
var dirName = string.Join("/", path.Skip(1));
var dirName = string.Join(Path.DirectorySeparatorChar, path.Skip(1));

pageBlobContainer = BlobUtilsV12.GetContainerClients(pageBlobAccount, containerName);
if (!await pageBlobContainer.WithRetries.ExistsAsync())
Expand Down

0 comments on commit b5fd3d8

Please sign in to comment.