Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Verify the integrity of the tar file with tarfile module?

Reply
Thread Tools

Verify the integrity of the tar file with tarfile module?

 
 
rudson alves
Guest
Posts: n/a
 
      08-15-2012
Hello,

I took a Slackware package file .tar (uncompressed) and edited with random characters to generate any error in its structure, as shown in the test bash below:

$ tar -tf zoo.tar
../
install/
install/slack-desc
tar: Pulando para o próximo cabeçalho
tar: Exiting with failure status due to previous errors
$ echo $?
2

How can I verify the integrity of the tar file with tarfile module without having to expand it?

To be more precise, even expanding this file it not generated any error message.
 
Reply With Quote
 
 
 
 
Dave Angel
Guest
Posts: n/a
 
      08-16-2012
On 08/16/2012 10:51 AM, Ramchandra Apte wrote:
> Just opening the file may not create an error.
> You have to read some files to check for errors.


You have no context in front of your message, and it's not a reply to
anything existing. So it must be top-posted. Try again.



--

DaveA

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with tarfile module to open *.tar.gz files - unreliable ? m_ahlenius Python 9 08-21-2010 03:07 AM
question on using tarfile to read a *.tar.gzip file m_ahlenius Python 2 02-08-2010 12:25 AM
problems with tarfile.open and tar.bz2 justin.vanwinkle@gmail.com Python 3 08-28-2005 07:22 AM
Version of TAR in tarfile module? TAR 1.14 or 1.15 port to Windows? Claudio Grondi Python 4 08-20-2005 08:01 PM
tarfile's tar.extractfile() file-like object incompatible with pickle.load()? Matt Doucleff Python 5 08-27-2004 08:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57