Skip to content

How to extract directory and all contents from .TAR? #565

Answered by piksel
sbisherCWA asked this question in Q&A
Discussion options

You must be logged in to vote

The easiest way is probably to loop over the entries as shown in
https://github.com/icsharpcode/SharpZipLib/wiki/GZip-and-Tar-Samples#-extract-from-a-tar-with-full-control

and then check the file name (in-archive path) against the directory you want, and then skip all other entries.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sbisherCWA
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants