, 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
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
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
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
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