>> The whole point of scandir is to expose low-level system calls in a >> cross-platform way. > > Cross-platform is great and preferable, but low-level system facilities > should be made available even when they are unique to a particular OS.
Yes, but this can be made cross-platform fairly easily, just like the other method calls. Just like DirEntry.stat() has different cross-platform operation (no stat call on Windows, a stat call on POSIX), DirEntry.inode() would have a different operation (stat call on Windows, no stat call on POSIX). -Ben _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com