From 443f4bc52bb4d12993ecbd2b08d91a4275d0f8d8 Mon Sep 17 00:00:00 2001 From: Mauro van der Gun Date: Mon, 26 Aug 2024 20:50:29 -0400 Subject: [PATCH 1/2] fix conflict when blob already exists --- .../src/AzureBlobStorageAdapter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileSystem.Adapters.AzureBlobStorage/src/AzureBlobStorageAdapter.cs b/FileSystem.Adapters.AzureBlobStorage/src/AzureBlobStorageAdapter.cs index 6333eba..62fcb0e 100644 --- a/FileSystem.Adapters.AzureBlobStorage/src/AzureBlobStorageAdapter.cs +++ b/FileSystem.Adapters.AzureBlobStorage/src/AzureBlobStorageAdapter.cs @@ -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) { From f6371d89bb240efc45a4d99e8a7344223c770897 Mon Sep 17 00:00:00 2001 From: Mauro van der Gun Date: Mon, 26 Aug 2024 20:56:19 -0400 Subject: [PATCH 2/2] update microsoft identity client package --- .../FileSystem.Adapters.MicrosoftOneDrive.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileSystem.Adapters.MicrosoftOneDrive/FileSystem.Adapters.MicrosoftOneDrive.csproj b/FileSystem.Adapters.MicrosoftOneDrive/FileSystem.Adapters.MicrosoftOneDrive.csproj index 422edf7..257a23b 100644 --- a/FileSystem.Adapters.MicrosoftOneDrive/FileSystem.Adapters.MicrosoftOneDrive.csproj +++ b/FileSystem.Adapters.MicrosoftOneDrive/FileSystem.Adapters.MicrosoftOneDrive.csproj @@ -18,7 +18,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive