mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #423] [MERGED] Tar symlink support #1019
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/423
Author: @markfinal
Created: 11/3/2018
Status: ✅ Merged
Merged: 11/5/2018
Merged by: @adamhathcock
Base:
master← Head:tarsymlink📝 Commits (4)
192b9c1Ref #248. Ref #132. Tar reader support for symlinks for .NET standard 2 and Posix platformsd91e58fRefs #248. Refs #132. Added a test case of a tar containing symlinks3f43384Removed unnecessary code70bafa6Tar symlink extraction📊 Changes
13 files changed (+114 additions, -10 deletions)
View changed files
📝
src/SharpCompress/Common/Entry.cs(+5 -0)📝
src/SharpCompress/Common/ExtractionMethods.cs(+21 -10)📝
src/SharpCompress/Common/ExtractionOptions.cs(+9 -0)📝
src/SharpCompress/Common/GZip/GZipEntry.cs(+2 -0)📝
src/SharpCompress/Common/IEntry.cs(+1 -0)📝
src/SharpCompress/Common/Rar/RarEntry.cs(+2 -0)📝
src/SharpCompress/Common/SevenZip/SevenZipEntry.cs(+2 -0)📝
src/SharpCompress/Common/Tar/Headers/TarHeader.cs(+7 -0)📝
src/SharpCompress/Common/Tar/TarEntry.cs(+2 -0)📝
src/SharpCompress/Common/Zip/ZipEntry.cs(+2 -0)📝
tests/SharpCompress.Test/SharpCompress.Test.csproj(+1 -0)📝
tests/SharpCompress.Test/Tar/TarReaderTests.cs(+60 -0)➕
tests/TestArchives/Archives/TarWithSymlink.tar.gz(+0 -0)📄 Description
Reworked the tar symlink support so that the ExtractionOptions now offers a delegate that an application can implement. Exception is thrown if a symlink is encountered but no delegate set.
Mono.Posix.NETStandard removed from the library, but added to the .NET Core 2.1 test app. Implemented the delegate for testing there.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.