[Tutor] Corrupt files

Øyvind python at kapitalisten.no
Tue Aug 2 15:12:11 CEST 2005


I have created a program that automatically downloads some files I need.
It can be .zip, .jpg, .mpg or .txt. However, a lot of the time urlretrieve
downloads the file, gives no error, but the downloaded file is corrupted.
I use a simple check for the size of the file. If it is way too small, I
automatically remove it. The files are ok on the server.

Is there some function/modulte that checks a files integrity wheter or not
the file is corrupt or not?

Thanks in advance.

This email has been scanned for viruses & spam by Decna as - www.decna.no
Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no

More information about the Tutor mailing list