Skip to content

Commit

Permalink
Merge pull request #44 from SharpGrip/43-409-when-overwriting-existin…
Browse files Browse the repository at this point in the history
…g-blobs-with-blobcontainerclient

fix conflict when blob already exists
  • Loading branch information
mvdgun authored Aug 31, 2024
2 parents 40f2f81 + f6371d8 commit 9c84412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public override async Task WriteFileAsync(string virtualPath, Stream contents, b
{
contents.Seek(0, SeekOrigin.Begin);

await client.UploadBlobAsync(path, contents, cancellationToken);
await client.GetBlobClient(path).UploadAsync(contents, true, cancellationToken);
}
catch (Exception exception)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Graph" Version="4.54.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.1" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.64.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 9c84412

Please sign in to comment.