Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files only, not directories? #353

Closed
itsnotvalid opened this issue Sep 8, 2016 · 3 comments
Closed

Files only, not directories? #353

itsnotvalid opened this issue Sep 8, 2016 · 3 comments
Labels

Comments

@itsnotvalid
Copy link

I am a bit curious when looking at the examples. There are options to zip up multiple files, but when supplying a directory, it simply skip that. Is it possible to add directory support in future generations, or we need to do it with tar cf x/ | zstd > x.tar.zst or tar -I zstd -cf x.tar.zst x?

@Cyan4973
Copy link
Contributor

Cyan4973 commented Sep 8, 2016

zstd has the same scope as compress/gzip/bzip2, so it is not an archiver.

You can compress multiple files in a directory : zstd -r directory. It will result in one compressed file for each source file.

But that's not the same as converting a directory content into a single archive.
For this task, tar is needed.

@ghost
Copy link

ghost commented Jul 8, 2018

@Cyan4973 perhaps give zstd the capability to load a list containing the files names.

@terrelln
Copy link
Contributor

terrelln commented Jul 9, 2018

zstd can compress multiple files, but it will compress them individually. If you want to compress an archive, first create an uncompressed tar or zip archive, and then compress the archive with zstd.

zstd is just a compressor, and doesn't have a format for creating an archive from multiple files. libarchive is a library that will create compressed archives, and it has zstd support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants