---------- Forwarded message ---------- Date: Tue, 2 Aug 2005 22:12:34 +0200 (CEST) From: "[iso-8859-1] �yvind" <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] Corrupt files
Hello and thank you. I don't really think that will help. The files are mostly smaller ones of for example jpg, avi, txt, doc and xls files. It is not published any MD5 checksums. Is there any way to check for example that a jpg file is completed without opening it? Or, is there some way to check the filesize on the server thru http (urlretrieve) and compare with the filesize of the downloaded file? Do you think that would work? Thanks in advance.... > > > On Tue, 2 Aug 2005, [iso-8859-1] �yvind wrote: > >> Is there some function/modulte that checks a files integrity wheter or >> not the file is corrupt or not? > > Hello! > > A general technique that people have used before is to provide file > "checksums" of large files. These checksums can be used to verify that > the file passed through fine over the wire. > > As a concrete example, the large Python 2.41 installer file is paired with > a "md5" checksum, listed below under "Files, MD5 checksums, signatures, > and sizes:" at the bottom of: > > http://www.python.org/2.4.1/ > > So the idea is to take the downloaded file, run the standard 'md5sum' > checksum program, and see that the checksums match the published one. > (If you don't have this utility: http://www.python.org/2.4.1/md5sum.py) > If the checksums don't match up, there's definitely file corruption. > > > Hope this helps! > > > -- > 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 > > -- 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
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor