Gemorroj / Archive7z

This library provides handling of 7z files in PHP
GNU Lesser General Public License v3.0
89 stars 20 forks source link

Extracting tar.gz/tar.bz2 in one-step #23

Open wapmorgan opened 3 years ago

wapmorgan commented 3 years ago

Feature request: treat tar.gz/tgz archive as a tar archive with compression, not as an archive compressed to gz file.

Right now it treats UnifiedArchive.tar.gz like

                                          File name | Size | Date              
--------------------------------------------------------------------------------
UnifiedArchive.tar                                  | 0.0g |  01 Jan 1970, 3:01
--------------------------------------------------------------------------------
                                    Total 1 file(s) | 0.0g | 0.0g

My propose is to handle this case. CLI for this is 7z x -so ../UnifiedArchive.tar.gz | 7z l -si -ttar.

Detailed information: https://superuser.com/questions/80019/how-can-i-unzip-a-tar-gz-in-one-step-using-7-zip

Gemorroj commented 3 years ago

I think we can do it by configurable parameter. Like OVERWRITE_MODE_*.

wapmorgan commented 3 years ago

No, it requires two commands to get list of files/to extract - like 7z x -so ../UnifiedArchive.tar.gz | 7z l -si -ttar. And this is required for all operations