>> a = len(os.listdir(mydir, '*JPG')
>>
>> Should be about right...
>
> No, os.listdir() only takes one argument, the directory. See the solutions 
> with glob.glob().

Oops! Quite right, my mistake. (As is the missing right paren!)

Alan g. 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to