From 8b73ba96c3d9e57b00749ea4b603c5b18f6e5404 Mon Sep 17 00:00:00 2001 From: Matous Kozak Date: Thu, 11 Jul 2024 09:06:39 +0200 Subject: [PATCH] Revert "Synchronized description of destinationDirectoryName parameter for all methods (#100330)" This reverts commit 8d231b4e0f3b9459ac51cf6c7d801e56cb780f08. --- .../src/System/IO/Compression/ZipFile.Extract.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Extract.cs b/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Extract.cs index 3be8bcce1fa0b..64662bfa21560 100644 --- a/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Extract.cs +++ b/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Extract.cs @@ -35,7 +35,7 @@ public static partial class ZipFile /// that is not supported. /// /// The path to the archive on the file system that is to be extracted. - /// The path to the directory in which to place the extracted files, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory. + /// The path to the directory on the file system. The directory specified must not exist, but the directory that it is contained in must exist. public static void ExtractToDirectory(string sourceArchiveFileName, string destinationDirectoryName) => ExtractToDirectory(sourceArchiveFileName, destinationDirectoryName, entryNameEncoding: null, overwriteFiles: false); @@ -67,7 +67,7 @@ public static void ExtractToDirectory(string sourceArchiveFileName, string desti /// that is not supported. /// /// The path to the archive on the file system that is to be extracted. - /// The path to the directory in which to place the extracted files, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory. + /// The path to the directory on the file system. The directory specified must not exist, but the directory that it is contained in must exist. /// True to indicate overwrite. public static void ExtractToDirectory(string sourceArchiveFileName, string destinationDirectoryName, bool overwriteFiles) => ExtractToDirectory(sourceArchiveFileName, destinationDirectoryName, entryNameEncoding: null, overwriteFiles: overwriteFiles); @@ -154,7 +154,7 @@ public static void ExtractToDirectory(string sourceArchiveFileName, string desti /// that is not supported. /// /// The path to the archive on the file system that is to be extracted. - /// The path to the directory in which to place the extracted files, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory. + /// The path to the directory on the file system. The directory specified must not exist, but the directory that it is contained in must exist. /// True to indicate overwrite. /// The encoding to use when reading or writing entry names in this ZipArchive. /// /// NOTE: Specifying this parameter to values other than null is discouraged.