Verify the integrity of the tar file with tarfile module?
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
tar: Pulando para o próximo cabeçalho
tar: Exiting with failure status due to previous errors
$ echo $?
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.
Re: Verify the integrity of the tar file with tarfile module?
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.
|All times are GMT. The time now is 06:13 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.