Extra Newby question - Trying to create md5 File Listing

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Sep 28 06:01:13 CEST 2006

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 are iterating along the *letters* in the file name, that 
explains your error that "c" doesn't exist.

Just say: filelist = glob.glob(fileData)

Gabriel Genellina
Softlab SRL 

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 

More information about the Python-list mailing list