Re: [Tutor] MD5 Digest for files

2007-01-19 Thread Christopher Arndt
Steve Nelson schrieb: > I want to create a dictionary of files and md5sums for a given > directory. It seems, however, that md5 works with strings or > read-only buffers, and can't be passed a file. > > What I want to do is something like: > > for f is os.listdir("."): > d[f] = someFunctionTha

[Tutor] MD5 Digest for files

2007-01-19 Thread Steve Nelson
Hello, I want to create a dictionary of files and md5sums for a given directory. It seems, however, that md5 works with strings or read-only buffers, and can't be passed a file. What I want to do is something like: for f is os.listdir("."): d[f] = someFunctionThatReturnsMD5Sum(f) Has this wh