From e2cab199c0570e904d2c7f49dc5237e1d3698325 Mon Sep 17 00:00:00 2001 From: Artem Baechka <31122393+artembaechka@users.noreply.github.com> Date: Tue, 13 Jan 2026 20:08:54 +0900 Subject: [PATCH] Update ApiProcedures.cs Youtrack issue GML-82 --- src/Gml.Client/Helpers/ApiProcedures.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gml.Client/Helpers/ApiProcedures.cs b/src/Gml.Client/Helpers/ApiProcedures.cs index 8076528..9f10e88 100644 --- a/src/Gml.Client/Helpers/ApiProcedures.cs +++ b/src/Gml.Client/Helpers/ApiProcedures.cs @@ -561,7 +561,7 @@ private async Task DownloadFile(string installationDirectory, ProfileFileReadDto var url = $"{_httpClient.BaseAddress.AbsoluteUri}api/v1/file/{file.Hash}"; - await using (var fs = new FileStream(localPath, FileMode.OpenOrCreate)) + await using (var fs = new FileStream(localPath, FileMode.Create)) { using (var response = await _httpClient.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, cancellationToken)) {