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)) {