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

Issues with uncompressing .cpgz #151

MaxPower85 opened this issue Mar 15, 2018 · 1 comment

Issues with uncompressing .cpgz #151

MaxPower85 opened this issue Mar 15, 2018 · 1 comment


Copy link

Create some folder in your working directory, name it "folder", add some random files to it and try this:
ditto -cz folder folder.cpgz or this ditto -cj folder folder.cpgz

Try uncompressing that with Keka... in both cases Keka extracts it like it's all one big text file instead of a folder with files inside.

The issue seems to be that it just uncompresses it as GZ or BZIP2 ("ditto -cz" is for GZ and "ditto -cj" is for BZIP2), but that it doesn't recognize that CPIO is inside... I tried to add .cpio extension after Keka decompresses it and then it can extract the files.

Archive doesn't seem to have that issue extracting it... although in the 2nd case (with an archive created using "ditto -cj") it seems that it briefly shows one file name "folder" before removing it and showing a folder with files named "folder 2".

Using tar -xf folder.cpgz in Terminal extracts the files to the working directory, without the need to manually add .cpio and to extract files from that.

Using ditto -x folder.cpgz folder works too, as expected, since ditto created those archives.

Using cpio -idv -F folder.cpgz also works.

I tried it with Unarchiver too... it doesn't have that issue extracting from archives created by the 1st command I mentioned (with "ditto -cz"), but it seems that there is the same issue as with Keka if the 2nd command ("ditto -cj") is used to create the archive.

@aonez aonez self-assigned this Mar 21, 2018
@aonez aonez added the bug label Mar 21, 2018
@aonez aonez added this to the 1.1.0 milestone Mar 21, 2018
Copy link

aonez commented Mar 21, 2018

I did no treated it as a gz+cpio or bzip2+cpio. So right now it is extracted using p7zip and the resulting file is a cpio without extension. So:

  • Enhance cpio format recognition
  • Extract directly using bsdtar

@aonez aonez mentioned this issue Mar 21, 2018
17 tasks
@aonez aonez closed this as completed Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants