Bug in glob.glob for files w/o extentions in Windows
From: Georgy Pruss (see_signature___at_hotmail.com)
Date: 11/30/03
- Next message: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Previous message: Sean Ross: "Re: referencing an object attribute sort of indirectly from within list"
- Next in thread: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Reply: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Reply: Tim Peters: "RE: Bug in glob.glob for files w/o extentions in Windows"
- Reply: Jules Dubois: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 03:47:38 GMT
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')
- Next message: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Previous message: Sean Ross: "Re: referencing an object attribute sort of indirectly from within list"
- Next in thread: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Reply: Georgy Pruss: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Reply: Tim Peters: "RE: Bug in glob.glob for files w/o extentions in Windows"
- Reply: Jules Dubois: "Re: Bug in glob.glob for files w/o extentions in Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]