Just for S&G's, I offer the following function which will return the
md5sum of an arbitrarily large file. Found a while back while
surfing
def md5sum(fpath):
"""
function to return the md5sum (128 bit checksum) of the given file
The sums are computed as described in RFC 1321. The
Gabriel and Dennis, than you for all your help. I ended up talking to
a friend a work about it and here's what we cam up with. It's very
similar to your suggestions so again, thanks. I just need to add a
machine name so I can get a md5 log from multiple machines and put it
in a database for vers
At Wednesday 27/9/2006 11:50, James Johnston wrote:
fl = file(fileconfig,'r')
fileData = fl.read()
for f1 in glob.glob(fileData):
filelist = f1
Here, filelist is overwritten each time with another file name; the
last one survives. A few lines later you iterate thru filelist - in
fact, you
Thanks Dennis, I'm feeling very stupid. You're right about the config
file containing drive/path/filenames (eg. c:\python24\*.exe or
whatever). I want to output a text file that contains records like
c:\python24\pythonw.exe[tab]md5 value, ... next file record. The
following snippet works but I d
On 9/27/06, James Johnston <[EMAIL PROTECTED]> wrote:
>
> I've never written a Python program before and I'm trying to read a config
> file with file path/names (eg. c:\\python24\\*.dll, ... *.exe) to create an
> output file of filename + md5 values. I'm confused. I'm trying to learn
> how to use