mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
How do I create a .bz2 file instead of a .tar.bz2 file? #384
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?
Originally created by @CaledoniaProject on GitHub (Jan 3, 2020).
The API example shows how to create a .tar.bz2 file
Since there's no ArchiveType.None, How can I compress a single file to .bz2 directly? Similar to unix command
bzip2 -9 test.txt@adamhathcock commented on GitHub (Jan 3, 2020):
You'd just use the BZip2Stream directly. I haven't made a nice API for that as there's been no call for it.
If there's a need, it could be added as there'd probably need to be something like it for GZip as well.
@CaledoniaProject commented on GitHub (Jan 3, 2020):
You could add ArchiveType.None
@adamhathcock commented on GitHub (Jan 3, 2020):
You're welcome to submit a pull request.