This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benhoyt, serhiy.storchaka, vstinner
Date 2016-01-02.18:10:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:38serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, benhoyt
2016-01-02 18:10:38serhiy.storchakasetmessageid: <>
2016-01-02 18:10:38serhiy.storchakalinkissue25996 messages
2016-01-02 18:10:38serhiy.storchakacreate