473,387 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Archive::Tar - Packing a directory

6
Hi .
Is there any way to add directory to a tar file.
Nowadays , it is only possible to : $tar->add_files("filename");
I would like to add directory as well.
Does anyone have any workaround or another idea how to achieve it ?
Jun 7 '07 #1
1 2340
miller
1,089 Expert 1GB
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
Jun 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: chaica | last post by:
Hi, chaica@desktop chaica $ python Python 2.4 (#1, Jan 10 2005, 22:28:10) on linux2 I'm using tarfile module to create an archive. For my example I'm using Amsn file and directory tree. My...
1
by: labrach | last post by:
hye, I'm using Archive::Tar to create .tar.gz file on either Unix or Win32 boxes The archive is created with the class method : Archive::Tar->create_archive('test.tgz',9, @filelist); where...
4
by: Claudio Grondi | last post by:
I need to unpack on a Windows 2000 machine some Wikipedia media .tar archives which are compressed with TAR 1.14 (support for long file names and maybe some other features) . It seems, that...
1
by: RJS | last post by:
I am currently working on the following piece of code for MS Access which searches for a particular file name and then uses the Access Transfer Text command to load to a table in my Access DB. I'm...
1
by: Flix | last post by:
The following piece of code should turn the folder IN and its subfolders into a single tar file located in the folder OUT: using ICSharpCode.SharpZipLib; using ICSharpCode.SharpZipLib.Tar; ...
7
by: Enigma Curry | last post by:
I need to store a large number of files in an archive. From Python, I need to be able to create an archive, put files into it, modify files that are already in it, and delete files already in it. ...
0
by: apuna | last post by:
We have SAP applications running on DB2 on AIX and Windows. On one of our AIX server, we recently created a symbolic link to our Log directory some thing like ln -s /db2/NODE0000/SQL0001/SQLOGDIR ...
2
by: codemaster | last post by:
Hi, I am using perl in windows platform. I have a directory structure \Dir\Data\tran\Archive\TDB\Log. There are files in the TDB directory with .dat extension. I need to parse the TDB directory...
2
by: everlast | last post by:
I have tons of files on my desktop computer (results of numerical simulations), and I need to make backup for later postprocessing and to free my disk so i can continue running simulations on that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.