From d39299176476a3fd230bb4b9ed1dc51e95e2be7d Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 19 Dec 2025 13:40:22 +0000
Subject: [PATCH] Remove CancellationToken from synchronous WriteToDirectory
overload
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
---
src/SharpCompress/Archives/IArchiveExtensions.cs | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/SharpCompress/Archives/IArchiveExtensions.cs b/src/SharpCompress/Archives/IArchiveExtensions.cs
index 4ab4129b..00aae468 100644
--- a/src/SharpCompress/Archives/IArchiveExtensions.cs
+++ b/src/SharpCompress/Archives/IArchiveExtensions.cs
@@ -40,19 +40,17 @@ public static class IArchiveExtensions
}
///
- /// Extract to specific directory with progress reporting and cancellation support
+ /// Extract to specific directory with progress reporting
///
/// The archive to extract.
/// The folder to extract into.
/// Extraction options.
/// Optional progress reporter for tracking extraction progress.
- /// Optional cancellation token.
public static void WriteToDirectory(
this IArchive archive,
string destinationDirectory,
ExtractionOptions? options,
- IProgress? progress,
- CancellationToken cancellationToken = default
+ IProgress? progress
)
{
// Prepare for progress reporting
@@ -65,8 +63,6 @@ public static class IArchiveExtensions
// Extract
foreach (var entry in archive.Entries)
{
- cancellationToken.ThrowIfCancellationRequested();
-
if (entry.IsDirectory)
{
var dirPath = Path.Combine(