Archive::Tar - Packing a directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ofzer
    New Member
    • Sep 2006
    • 6

    Archive::Tar - Packing a directory

    Hi .
    Is there any way to add directory to a tar file.
    Nowadays , it is only possible to : $tar->add_files("fil ename");
    I would like to add directory as well.
    Does anyone have any workaround or another idea how to achieve it ?
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    Greetings,

    An easy solution would be to use Archive::Zip instead. It has a method specifically for adding a directory.

    cpan Archive::Zip

    I expect that it is most likely possible in Archive::Tar as well, but I'm more familiar with the zip package.

    Good luck,
    - Miller

    Comment

    Working...