bokr at oz.net
Tue May 27 11:10:29 CEST 2003
On Tue, 27 May 2003 08:23:41 +0000 (UTC), Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote:
>bokr at oz.net (Bengt Richter) wrote in news:barmqv$6cg$0 at 18.104.22.168:
>> for windows NT4, Pythoh 2.2.2 glob.glob seems to return a list that is
>> sorted already, so
>> for path in glob.glob(path_pattern): print path
>> should do it.
>Not true. If you are accessing an NTFS disc, the files are always sorted
>because the directory is stored as a b-tree, however if you access files on
>a FAT formatted disc you will get them in an arbitrary order.
Oops, I only have one rarely-used FAT partition, and didn't look ;-/
I did say, "seems" though ;-)
Thanks for the correction.
More information about the Python-list