Skip to content

Commit 9c84412

Browse files
authored
Merge pull request #44 from SharpGrip/43-409-when-overwriting-existing-blobs-with-blobcontainerclient
fix conflict when blob already exists
2 parents 40f2f81 + f6371d8 commit 9c84412

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FileSystem.Adapters.AzureBlobStorage/src/AzureBlobStorageAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public override async Task WriteFileAsync(string virtualPath, Stream contents, b
237237
{
238238
contents.Seek(0, SeekOrigin.Begin);
239239

240-
await client.UploadBlobAsync(path, contents, cancellationToken);
240+
await client.GetBlobClient(path).UploadAsync(contents, true, cancellationToken);
241241
}
242242
catch (Exception exception)
243243
{

FileSystem.Adapters.MicrosoftOneDrive/FileSystem.Adapters.MicrosoftOneDrive.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<ItemGroup>
2020
<PackageReference Include="Microsoft.Graph" Version="4.54.0" />
21-
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.1" />
21+
<PackageReference Include="Microsoft.Identity.Client" Version="4.64.0" />
2222
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)