Implement stream-based ZipFile ExtractToDirectory and CreateFromDirectory method...
authorCarlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
Tue, 30 May 2023 16:48:39 +0000 (09:48 -0700)
committerGitHub <noreply@github.com>
Tue, 30 May 2023 16:48:39 +0000 (09:48 -0700)
commitcfa28e3dee11e345bfb20b3568a4783ae1ebc2d3
tree62233b830534a5a292d84416fc0e19392ae33e09
parent7d50edd1f85300dc0bbcd5df8f00a05c56c103c8
Implement stream-based ZipFile ExtractToDirectory and CreateFromDirectory method overloads (#85491)

* ref: Add stream-based ZipFile.CreateFromDirectory and ZipFile.ExtractToDirectory methods.

* src: Add stream-based ZipFile.CreateFromDirectory ZipFile.ExtractToDirectory methods.

* tests: Move wrongly placed tests to the correct class.

* tests: Add stream-based tests for ZipFile.CreateFromDirectory and ZipFile.ExtractToDirectory.

* src: Documentation and resource strings.

* tests: More tests for unseekable/unreadable/unwritable streams.

* Address suggestions and include more exception validation tests.

* Fix braces after resolving conflict.

* Use AssertExtensions.SequenceEqual for clearer error message.

* Reset the resx file again.

* Order results of dir enumeration tests
12 files changed:
src/libraries/Common/tests/System/IO/Compression/ZipTestHelper.cs
src/libraries/System.IO.Compression.ZipFile/ref/System.IO.Compression.ZipFile.cs
src/libraries/System.IO.Compression.ZipFile/src/Resources/Strings.resx
src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Create.cs
src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Extract.cs
src/libraries/System.IO.Compression.ZipFile/tests/System.IO.Compression.ZipFile.Tests.csproj
src/libraries/System.IO.Compression.ZipFile/tests/ZipArchiveEntry.ExtractToDirectory.cs
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Create.Stream.cs [new file with mode: 0644]
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Create.cs
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Extract.Stream.cs [new file with mode: 0644]
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Extract.cs
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Open.cs [new file with mode: 0644]