[Tutor] fnmatch -or glob question

Alan Gauld alan.gauld at btinternet.com
Sat Jul 4 10:27:20 CEST 2009


"Damon Timm" <damontimm at gmail.com> wrote

> And I thought I could just construct something for glob or fnmatch like:
> 
> glob.glob("DSC_0065*.jpg") --or-- fnmatch.fnmatch(file, "DSC_0065*.jpg")
> 
> But I'm not getting anywhere.  

Can you give is a clue as to what you are getting?
What is happening and what do you experct to happen?
Are you finding any files? some files? too many files?
Do you get an error message?

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/




More information about the Tutor mailing list