Message315748
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. |
|
Date |
User |
Action |
Args |
2018-04-25 15:47:39 | eryksun | set | recipients:
+ eryksun, rhettinger, terry.reedy, docs@python, serhiy.storchaka, cheryl.sabella, Ben FrantzDale |
2018-04-25 15:47:39 | eryksun | set | messageid: <1524671259.5.0.682650639539.issue33275@psf.upfronthosting.co.za> |
2018-04-25 15:47:39 | eryksun | link | issue33275 messages |
2018-04-25 15:47:39 | eryksun | create | |
|