mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #422] [CLOSED] Tar symlink support #1018
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/422
Author: @markfinal
Created: 11/1/2018
Status: ❌ Closed
Base:
master← Head:tarsymlink📝 Commits (3)
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 code📊 Changes
12 files changed (+85 additions, -10 deletions)
View changed files
📝
src/SharpCompress/Common/Entry.cs(+5 -0)📝
src/SharpCompress/Common/ExtractionMethods.cs(+24 -10)📝
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)📝
src/SharpCompress/SharpCompress.csproj(+1 -0)📝
tests/SharpCompress.Test/Tar/TarReaderTests.cs(+37 -0)➕
tests/TestArchives/Archives/TarWithSymlink.tar.gz(+0 -0)📄 Description
I've been trying to use SharpCompress in my project, and encountered tar archives containing symlinks to be a problem for extraction, so I've tried to implement support for symlinks.
I'm expecting this will bounce back with rejections initially, as there are two holes that I've not filled:
Suggestions/recommendations for what to do here would be gratefully received.
I've added a test case, which is my initial use case - a source archive of the MoltenVK project on github, which contains symlinks. With local builds, and this PR, I can now use that archive in my project.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.