From: Steve Berdy <86739818+steveberdy@users.noreply.github.com>
Date: Sat, 24 Jul 2021 21:21:53 +0000 (-0400)
Subject: Edit IOException docs in ZipFile.ExtractToDirectory (#55762)
X-Git-Tag: accepted/tizen/unified/20220110.054933~938
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4651ead41e6da11a3e67b4da46a6ef588ac7e760;p=platform%2Fupstream%2Fdotnet%2Fruntime.git
Edit IOException docs in ZipFile.ExtractToDirectory (#55762)
---
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 50e1717..eb908ed 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
@@ -28,8 +28,7 @@ namespace System.IO.Compression
/// and file names must be less than 260 characters.
/// The path specified by sourceArchive or destinationDirectoryName is invalid,
/// (for example, it is on an unmapped drive).
- /// The directory specified by destinationDirectoryName already exists.
- /// -or- An I/O error has occurred. -or- An archive entry?s name is zero-length, contains only whitespace, or contains one or
+ /// An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or
/// more invalid characters as defined by InvalidPathChars. -or- Extracting an archive entry would result in a file destination that is outside the destination directory (for example, because of parent directory accessors). -or- An archive entry has the same name as an already extracted entry from the same archive.
/// The caller does not have the required permission.
/// sourceArchive or destinationDirectoryName is in an invalid format.
@@ -61,8 +60,7 @@ namespace System.IO.Compression
/// and file names must be less than 260 characters.
/// The path specified by sourceArchive or destinationDirectoryName is invalid,
/// (for example, it is on an unmapped drive).
- /// The directory specified by destinationDirectoryName already exists.
- /// -or- An I/O error has occurred. -or- An archive entry?s name is zero-length, contains only whitespace, or contains one or
+ /// An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or
/// more invalid characters as defined by InvalidPathChars. -or- Extracting an archive entry would result in a file destination that is outside the destination directory (for example, because of parent directory accessors). -or- An archive entry has the same name as an already extracted entry from the same archive.
/// The caller does not have the required permission.
/// sourceArchive or destinationDirectoryName is in an invalid format.
@@ -95,8 +93,7 @@ namespace System.IO.Compression
/// and file names must be less than 260 characters.
/// The path specified by sourceArchive or destinationDirectoryName is invalid,
/// (for example, it is on an unmapped drive).
- /// The directory specified by destinationDirectoryName already exists.
- /// -or- An I/O error has occurred. -or- An archive entry?s name is zero-length, contains only whitespace, or contains one or
+ /// An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or
/// more invalid characters as defined by InvalidPathChars. -or- Extracting an archive entry would result in a file destination that is outside the destination directory (for example, because of parent directory accessors). -or- An archive entry has the same name as an already extracted entry from the same archive.
/// The caller does not have the required permission.
/// sourceArchive or destinationDirectoryName is in an invalid format.
@@ -150,8 +147,7 @@ namespace System.IO.Compression
/// and file names must be less than 260 characters.
/// The path specified by sourceArchive or destinationDirectoryName is invalid,
/// (for example, it is on an unmapped drive).
- /// The directory specified by destinationDirectoryName already exists.
- /// -or- An I/O error has occurred. -or- An archive entry?s name is zero-length, contains only whitespace, or contains one or
+ /// An I/O error has occurred. -or- An archive entry's name is zero-length, contains only whitespace, or contains one or
/// more invalid characters as defined by InvalidPathChars. -or- Extracting an archive entry would result in a file destination that is outside the destination directory (for example, because of parent directory accessors). -or- An archive entry has the same name as an already extracted entry from the same archive.
/// The caller does not have the required permission.
/// sourceArchive or destinationDirectoryName is in an invalid format.
diff --git a/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFileExtensions.ZipArchiveEntry.Extract.cs b/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFileExtensions.ZipArchiveEntry.Extract.cs
index a74aca9..34c7ecd 100644
--- a/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFileExtensions.ZipArchiveEntry.Extract.cs
+++ b/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFileExtensions.ZipArchiveEntry.Extract.cs
@@ -19,8 +19,7 @@ namespace System.IO.Compression
/// For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
/// The path specified in destinationFileName is invalid (for example, it is on
/// an unmapped drive).
- /// destinationFileName already exists.
- /// -or- An I/O error has occurred. -or- The entry is currently open for writing.
+ /// An I/O error has occurred. -or- The entry is currently open for writing.
/// -or- The entry has been deleted from the archive.
/// destinationFileName is in an invalid format
/// -or- The ZipArchive that this entry belongs to was opened in a write-only mode.
@@ -48,8 +47,7 @@ namespace System.IO.Compression
/// For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
/// The path specified in destinationFileName is invalid
/// (for example, it is on an unmapped drive).
- /// destinationFileName exists and overwrite is false.
- /// -or- An I/O error has occurred.
+ /// An I/O error has occurred.
/// -or- The entry is currently open for writing.
/// -or- The entry has been deleted from the archive.
/// destinationFileName is in an invalid format