Skip to content

Commit 1bf045f

Browse files
committed
Make fileMode usage between progress and non-progress paths consistent
1 parent 8eb5a4d commit 1bf045f

File tree

1 file changed

+1
-1
lines changed
  • Flow.Launcher.Infrastructure/Http

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/Http/Http.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static async Task DownloadAsync([NotNull] string url, [NotNull] string fi
9797
if (canReportProgress && reportProgress != null)
9898
{
9999
await using var contentStream = await response.Content.ReadAsStreamAsync(token);
100-
await using var fileStream = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.None, 8192, true);
100+
await using var fileStream = new FileStream(filePath, FileMode.CreateNew, FileAccess.Write, FileShare.None, 8192, true);
101101

102102
var buffer = new byte[8192];
103103
long totalRead = 0;

0 commit comments

Comments
 (0)