On Sat, April 23, 2005 12:44 am, Prathaban Mookiah said:
> Is there a way to test if a .gz file is in a valid format. Functions like
> gzread, gzfile don't seem to care if the file is corrupt or not.
>
> gzeof also didn't work for me. I guess it is because it does not check for
> a
> valid .gz term
I'd generate an MD5 sum on a file you know is valid, and compare it against
that in your script.
On 4/23/05, Prathaban Mookiah <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Is there a way to test if a .gz file is in a valid format. Functions like
> gzread, gzfile don't seem to care if the file is c
Hello,
Is there a way to test if a .gz file is in a valid format. Functions like
gzread, gzfile don't seem to care if the file is corrupt or not.
gzeof also didn't work for me. I guess it is because it does not check for a
valid .gz termination. Any ideas to go about doing this?
Thanks in adv
3 matches
Mail list logo