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 <1451758238.49.0.729670752807.issue25996@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2016-01-02 18:10:38serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, benhoyt
2016-01-02 18:10:38serhiy.storchakasetmessageid: <1451758238.49.0.729670752807.issue25996@psf.upfronthosting.co.za>
2016-01-02 18:10:38serhiy.storchakalinkissue25996 messages
2016-01-02 18:10:38serhiy.storchakacreate