Bug in glob.glob for files w/o extentions in Windows

Mel Wilson mwilson at the-wire.com
Sun Nov 30 10:51:59 EST 2003


In article <0Zfyb.48050$dl.2119318 at twister.southeast.rr.com>,
"Georgy Pruss" <see_signature__ at hotmail.com> wrote:
>
>"Jules Dubois" <bogus at invalid.tld> wrote in message news:nj2k03e19clm$.uctj11fclu96$.dlg at 40tude.net...
>| On Sun, 30 Nov 2003 03:47:38 GMT, in article
>| <news:uLdyb.46389$I53.2118790 at twister.southeast.rr.com>, Georgy Pruss
>| wrote:
>|
>| > 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 *.
>| > ccccc
>| > ddddd
>|
>| This is standard Windows behavior.  It's compatible with CP/M and therefore
>| MS-DOS, and Microsoft has preserved this behavior in all versions of
>| Windows.
>
>That's what I meant, wanted and liked.
>
>C'mon guys, I don't care if it's FAT, NTFS, Windows, Linux, VMS or whatever.
>All I wanted was to get files w/o dots in their names (on my computer :)).
>I did it and I can do it on any system if I need.

Looks like you need os.path.glob(), which doesn't exist, yet.

        Regards.        Mel.




More information about the Python-list mailing list