Bug in glob.glob for files w/o extentions in Windows
Georgy Pruss
see_signature__ at hotmail.com
Sat Nov 29 22:47:38 EST 2003
On Windows XP glob.glob doesn't work properly for files without extensions.
E.g. C:\Temp contains 4 files: 2 with extensions, 2 without.
C:\Temp>dir /b *
aaaaa.aaa
bbbbb.bbb
ccccc
ddddd
C:\Temp>dir /b *.
ccccc
ddddd
C:\Temp>python
Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import glob
>>> glob.glob( '*' )
['aaaaa.aaa', 'bbbbb.bbb', 'ccccc', 'ddddd']
>>> glob.glob( '*.' )
[]
It looks like a bug.
Georgy
--
Georgy Pruss
E-mail: 'ZDAwMTEyMHQwMzMwQGhvdG1haWwuY29t\n'.decode('base64')
More information about the Python-list
mailing list