Re: Tar on Windows XP
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 15:17:40 +1100
"David Walker" <david@xxxxxxxxxxx> wrote in message
news:Gxuvh.18350$8j7.13192@xxxxxxxxxxxxxxxxxxxxxxx
Hi
I am trying to create a tar archive on Windows XP with the Perl code
below. However, when I look at the archive created (using WinZip 10.0) all
the directory information is lost, and when I untar it using WinZip all I
get is all the files in the same directory. Can some kind person please
tell me how I can create the tar file so that when it is untar'd the
directory structure will be preserved.
From the "FAQ" section in 'perldoc Archive::Tar' :
-- quote --
I'm using WinZip, or some other non-POSIX client, and files are not
being extracted properly!
By default, "Archive::Tar" is in a completely POSIX-compatible mode,
which uses the POSIX-specification of "tar" to store files. For
paths greather than 100 characters, this is done using the "POSIX
header prefix". Non-POSIX-compatible clients may not support this
part of the specification, and may only support the "GNU Extended
Header" functionality. To facilitate those clients, you can set the
$Archive::Tar::DO_NOT_USE_PREFIX variable to "true". See the "GLOBAL
VARIABLES" section for details on this variable.
-- end quote --
Hopefully, that deals with the problem you're facing. (If not, let us know -
and also tell us which version of Archive::Tar you have.).)
Cheers,
Rob
.
- Follow-Ups:
- Re: Tar on Windows XP
- From: David Walker
- Re: Tar on Windows XP
- References:
- Tar on Windows XP
- From: David Walker
- Tar on Windows XP
- Prev by Date: Re: Data::Dumper not indenting per perldocs
- Next by Date: Re: how to flush a file
- Previous by thread: Tar on Windows XP
- Next by thread: Re: Tar on Windows XP
- Index(es):
Relevant Pages
|