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

Can zstd decompress files such as .zst.001, .zst.002, and so on? #3781

Closed
qtqgyt opened this issue Oct 1, 2023 · 5 comments
Closed

Can zstd decompress files such as .zst.001, .zst.002, and so on? #3781

qtqgyt opened this issue Oct 1, 2023 · 5 comments
Assignees
Labels

Comments

@qtqgyt
Copy link

qtqgyt commented Oct 1, 2023

No description provided.

@qtqgyt qtqgyt changed the title Can zstd decompress files such as .zst.001, .zst.002, and so on? Can zstd decompress files such as .zst.001, .zst.002, and so on? (Question) Oct 1, 2023
@qtqgyt qtqgyt changed the title Can zstd decompress files such as .zst.001, .zst.002, and so on? (Question) Can zstd decompress files such as .zst.001, .zst.002, and so on? Oct 1, 2023
@Cyan4973 Cyan4973 self-assigned this Oct 1, 2023
@Cyan4973
Copy link
Contributor

Cyan4973 commented Oct 1, 2023

Not directly on its own,
but assuming a posix terminal,
you could pipe these files into zstd and get it to decompress them as if it was a single file :

cat $(ls archive.zst.0*) | zstd -d > archive

@qtqgyt
Copy link
Author

qtqgyt commented Oct 4, 2023

thanks :) hopefully this should help, but how to do it on windows and mac?

@Cyan4973
Copy link
Contributor

Cyan4973 commented Oct 4, 2023

On macos, it's the same.

On windows, well, this is its own galaxy, and I'm not very familiar.
I wouldn't be surprised if there is no equivalent for the cmd command prompt.
The newer Powershell, however, might be able to pull that off.
Possibly : Get-ChildItem archive.zst.0* | Sort-Object Name | Get-Content | zstd -d > archive (untested)

@qtqgyt
Copy link
Author

qtqgyt commented Oct 4, 2023

ok, ill look into it maybe, thanks

@wwinniww
Copy link

wwinniww commented Oct 10, 2023

Files with extension .001 and counting are usually splitted files.

At windows command line there is an easy way to join them into one larger file.

copy /b <filename>.zstd.001 + <filename>.zstd.002 + ... + ... [space]<filename>.zstd

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