in reply to Re^2: Cannot add "folder" information to Archive::Tar->add_data in Win32 (ActivePerl)
in thread Cannot add "folder" information to Archive::Tar->add_data in Win32 (ActivePerl)

graff:

Thanks a lot. I think I have figure out what is going on here. As you said, the "path" info is there, it is just not being identified as such through WinZip and WinRAR programs. What is still a mystery is that the old Archive::Tar generated TAR.GZ files through my Perl script are still being able to be identified through WinZip and WinRAR, but not the new ones.

Also, as I said, when I purposefully try to set the longlink flag, even the current WinZip and WinRAR programs identify the path info, but why I can't have that as a solution is because when I forcefully turn this longlink info, it chops of 1 character in the filename. Duh! But, I think the Archive::Tar itself is NOT buggy. That's because, subsequent to what you stated, I wrote another Archive::Tar perl script to read the contents of the archive and explode it. Here it did the right thing. It deflated it to "qa" and "test" directories as I expected it. However, WinZip and WinRAR do NOT do that: Here is the code and thanks for your help.
use strict; use Archive::Tar; my $tar = Archive::Tar->new; my @numFiles = $tar->read('test.tar.gz') ; $_->extract for(@numFiles); $tar->clear; undef $tar;
  • Comment on Re^3: Cannot add "folder" information to Archive::Tar->add_data in Win32 (ActivePerl)
  • Download Code