Author eryksun
Recipients Ben FrantzDale, cheryl.sabella, docs@python, eryksun, rhettinger, serhiy.storchaka, terry.reedy
Date 2018-04-25.15:47:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524671259.5.0.682650639539.issue33275@psf.upfronthosting.co.za>
In-reply-to
Content
As I said, some file systems such as NTFS and ISO 9660 (or Joliet) store directories in lexicographically sorted order. NTFS does this using a b-tree and case-insensitive comparison, which helps the driver efficiently implement filtering a directory listing using a pattern such as "spam*eggs?.txt". (Filtering of a directory listing at the syscall level is peculiar to Windows and not supported by Python.)

I like the phrase "arbitrary order". I don't think it's wise for an application to ever depend on the order. Also, we usually want natural-language collation for display purposes (e.g. spam2.txt should come before spam10.txt), so we have to sort the result regardless of the file system.
History
Date User Action Args
2018-04-25 15:47:39eryksunsetrecipients: + eryksun, rhettinger, terry.reedy, docs@python, serhiy.storchaka, cheryl.sabella, Ben FrantzDale
2018-04-25 15:47:39eryksunsetmessageid: <1524671259.5.0.682650639539.issue33275@psf.upfronthosting.co.za>
2018-04-25 15:47:39eryksunlinkissue33275 messages
2018-04-25 15:47:39eryksuncreate