Don't ask to ask, just ask | |
PerlMonks |
Re: Has foo.tar.bz2 been extracted to $dirrectory?by bluto (Curate) |
on Nov 01, 2002 at 17:12 UTC ( [id://209787]=note: print w/replies, xml ) | Need Help?? |
- foo.tar.bz2 has been download completely
The '-t' or '--test' flags of bzip2 check the integrity of the compressed file. If there is an MD5 checksum, you can generate and compare that as well. I'm assuming GNU tar, which you may be using(?), will do this with the 'j' flag, though you may want to test for this. - foo.tar.bz2 has been untared completely Some tar's will remain silent and appear to untar files on filesystems that run out of space (and create zero length files to boot). Gnu's tar has a '--compare' option which I've never used but might be worth a try. If you aren't using Gnu tar, you'll probably need to examine the contents of the archive yourself (e.g. tar -tv). bluto
In Section
Seekers of Perl Wisdom
|
|