Home: Perl Programming Help: Beginner:
List files in *.par file



Master_Sergius
Novice

Aug 28, 2018, 3:22 AM


Views: 1021
List files in *.par file

Hello, I got one file *.par which I should re-pack. No documentation is provided. I only know that it packed from several files from one certain repository, but can't see what are these exact files.
All utilities (parchive, par2, etc.) have only options to create, verify or repair. And no listing or something like that.
So, my question is - how to see what's inside *.par file (on Linux or FreeBSD if it's matter)?


Zhris
Enthusiast

Aug 28, 2018, 1:44 PM


Views: 1010
Re: [Master_Sergius] List files in *.par file

Hi,

Take a look at PAR. I've used it to create par packages, and executables, via PAR::Packer's pp utility. But PAR::par_handle takes a par file and returns an Archive::Zip object which in turn you can use to read its contents.

Chris