Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27101 > unrolled thread
| Started by | rudson alves <rudsonalves67@gmail.com> |
|---|---|
| First post | 2012-08-15 07:59 -0700 |
| Last post | 2012-08-16 15:53 -0400 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Verify the integrity of the tar file with tarfile module? rudson alves <rudsonalves67@gmail.com> - 2012-08-15 07:59 -0700
Re: Verify the integrity of the tar file with tarfile module? Dave Angel <d@davea.name> - 2012-08-16 15:53 -0400
| From | rudson alves <rudsonalves67@gmail.com> |
|---|---|
| Date | 2012-08-15 07:59 -0700 |
| Subject | Verify the integrity of the tar file with tarfile module? |
| Message-ID | <0e274ee0-3a9b-4013-b6e5-151c578455ce@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2012-08-16 15:53 -0400 |
| Message-ID | <mailman.3390.1345146839.4697.python-list@python.org> |
| In reply to | #27101 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web