jujiro_eb has asked for the wisdom of the Perl Monks concerning the following question:
Please help me out here. I am struggling with creating a tar ball containing the traversed tree of files, keeing their relative pathnames in tact.
It was a piece of cake with Archive::Zip using code like the following:
With Archive::Tar I am not able to save the path at all. Please do pardon my ignorence but Archive::TarGzip is really not very well documented. My only option to create a tar.gz file is to use the tar utility from command line. Being on Windows platform does not make that possible.my $obj = Archive::Zip->new(); # new instance $obj->addTree( "$build_home/.", 'myapp' ); $zip_file="$build_dest/ama_".$myapp_version."_win32.zip"; unlink $zip_file; $obj->writeToFileNamed($zip_file);
Can you please give me some pointers. I would greatly appreciate the help.
Ash
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question on Archive::Tar vs Archive::TarGzip
by graff (Chancellor) on May 08, 2009 at 03:19 UTC | |
|
Re: Question on Archive::Tar vs Archive::TarGzip
by graff (Chancellor) on May 08, 2009 at 04:01 UTC | |
|
Re: Question on Archive::Tar vs Archive::TarGzip
by Anonymous Monk on May 08, 2009 at 02:07 UTC | |
|
Re: Question on Archive::Tar vs Archive::TarGzip
by Marshall (Canon) on May 08, 2009 at 16:30 UTC |