Would like to check the integrity of the file before attempting uncompression or extraction.There's not really any way to do this. Zip and gzip store checksums of the uncompressed contents; the -t options actually uncompress the file, calculate the checksum, and throw away the contents. You could do the same thing in your program, or you could uncompress to a tempfile and delete it if the checksum comes out bad.
Edit: There's a section about integrity checking in the Archive::Zip::FAQ.
In reply to Re: File integrity checker
by no_slogan
in thread File integrity checker
by roperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |