Hi,
I am encountering problems using Archive::Tar (v0.07) when inserting symlinks. The file that the symlink refers to is added to the tar (with the name of the symlink) instead of maintaining the original symlink.
Example..
lrwxrwxrwx 1 mf139823 staff 30 Feb1909:26 /webroot/service/servicelist +/ss/rasprofile-fr-eng.pdf -> rasprofile-fr-eng-20030219.pdf ...is added to the tarfile by using... $tar->add_files("/webroot/rasprofile-fr-eng.pdf"); ...however when the tar file is extracted it appears as... -rwx--x--x 1 mf139823 staff 5318 Feb1909:26 rasprofile-fr-eng.pdf
I know it is possible to use tar -cvf from the command line to maintain symlinks as I often use this, but I need to be selective about the files I add therfore I want to do it from within PERL
Help! Why is it doing this? How can I make it maintain the symlink? If you can think of an easier way to achive this then please let me know
Please help if you can I'm stuck!
M
In reply to symlinks in Archive::Tar? by heezy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |