Message257353
For now os.scandir() on Unix is implemented using opendir()/readdir()/closedir(). It accepts bytes and str pathname. But most functions in the os module that accept a pathname, accept also an open file descriptor. It is possible to implement this feature in scandir() with using fdopendir() instead of opendir(). This would allow to add a support of the dir_fd parameter in scandir(). And that would allow to implement os.fwalk() with scandir() and make more efficient implementation of os.walk() (because we no longer need to walk long path for deep directories, see issue15200). |
|
Date |
User |
Action |
Args |
2016-01-02 18:10:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, benhoyt |
2016-01-02 18:10:38 | serhiy.storchaka | set | messageid: <1451758238.49.0.729670752807.issue25996@psf.upfronthosting.co.za> |
2016-01-02 18:10:38 | serhiy.storchaka | link | issue25996 messages |
2016-01-02 18:10:38 | serhiy.storchaka | create | |
|