Re: appending * to glob returns files with '*' !!

2008-09-23 Thread John [H2O]
, CA, USA 37 18 N 121 57 W AIM, Y!M erikmaxfrancis Many would be cowards if they had courage enough. -- Thomas Fuller -- http://mail.python.org/mailman/listinfo/python-list -- View this message in context: http://www.nabble.com/appending-*-to-glob-returns-files-with-%27*%27-%21

appending * to glob returns files with '*' !!

2008-09-21 Thread John [H2O]
in context: http://www.nabble.com/appending-*-to-glob-returns-files-with-%27*%27-%21%21-tp19579121p19579121.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: appending * to glob returns files with '*' !!

2008-09-21 Thread Sean DiZazzo
On Sep 19, 1:37 pm, John [H2O] [EMAIL PROTECTED] wrote: I have a glob.glob search: searchstring = os.path.join('path'+'EN*') shouldn't that be os.path.join(path, 'EN*') ? ___ This returns some files: EN082333 EN092334 EN* Mine doesn't return that last string. My routine cannot

Re: appending * to glob returns files with '*' !!

2008-09-21 Thread alex23
On Sep 20, 6:37 am, John [H2O] [EMAIL PROTECTED] wrote: My routine cannot handle the '*' and it should'nt be returned anyway? :-/ A bug? Not at all. That's the same behaviour you'll get if you do 'ls EN*'. In your case, you're asking to match on anything that begins with EN, a subset of files

Re: appending * to glob returns files with '*' !!

2008-09-21 Thread Erik Max Francis
John [H2O] wrote: I have a glob.glob search: searchstring = os.path.join('path'+'EN*') files = glob.glob(searchstring) for f in files: print f ___ This returns some files: EN082333 EN092334 EN* My routine cannot handle the '*' and it should'nt be returned anyway? :-/ A bug? No, it