Subject: | Archive::Tar removes trailing '/' from directories |
Date: | Wed, 4 Feb 2015 18:39:04 +0900 |
To: | bug-Archive-Tar [...] rt.cpan.org |
From: | Alan <lameventanas [...] gmail.com> |
Archive::Tar removes the trailing '/' from directories, is there any
way to prevent it?
cd /
mkdir tmp/testdir
tar -czf /tmp/test-gnutar.tar.gz tmp/testdir/
perl -MArchive::Tar -e
'Archive::Tar->create_archive("/tmp/test-perl.tar.gz", COMPRESS_GZIP,
"tmp/testdir/")'
echo "GNU Tar result:"
tar -tzf /tmp/test-gnutar.tar.gz
echo
echo "Archive::Tar result:"
tar -tzf /tmp/test-perl.tar.gz
The output is:
GNU Tar result:
tmp/testdir/
Archive::Tar result:
tmp/testdir