From 95c409d97944444952d67f00a764a19b0f57c6a3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:09:12 +0000 Subject: [PATCH] Change File.Create to File.OpenWrite in TarReaderAsyncTests for consistency Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs b/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs index d6a04546..4be59584 100644 --- a/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs +++ b/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs @@ -92,7 +92,7 @@ public class TarReaderAsyncTests : ReaderTests } var destinationFileName = Path.Combine(destdir, file.NotNull()); - using var fs = File.Create(destinationFileName); + using var fs = File.OpenWrite(destinationFileName); await entryStream.CopyToAsync(fs); } }