mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Make fileMode usage between progress and non-progress paths consistent
This commit is contained in:
parent
8eb5a4dfca
commit
1bf045f3e7
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ namespace Flow.Launcher.Infrastructure.Http
|
|||
if (canReportProgress && reportProgress != null)
|
||||
{
|
||||
await using var contentStream = await response.Content.ReadAsStreamAsync(token);
|
||||
await using var fileStream = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.None, 8192, true);
|
||||
await using var fileStream = new FileStream(filePath, FileMode.CreateNew, FileAccess.Write, FileShare.None, 8192, true);
|
||||
|
||||
var buffer = new byte[8192];
|
||||
long totalRead = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue