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 giampaolo.rodola
Recipients giampaolo.rodola
Date 2019-12-19.18:29:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576780141.57.0.935904677179.issue39099@roundup.psfhosted.org>
In-reply-to
Content
PR in attachment adds a new dirfd() method to the scandir() object (POSIX only). This can be be passed to os.* functions supporting the "dir_fd" parameter, and avoid opening a new fd as in:

    >>> dirfd = os.open("basename", os.O_RDONLY, dir_fd=topfd)

At the moment I am not sure if it's possible to also support Windows.
History
Date User Action Args
2019-12-19 18:29:01giampaolo.rodolasetrecipients: + giampaolo.rodola
2019-12-19 18:29:01giampaolo.rodolasetmessageid: <1576780141.57.0.935904677179.issue39099@roundup.psfhosted.org>
2019-12-19 18:29:01giampaolo.rodolalinkissue39099 messages
2019-12-19 18:29:01giampaolo.rodolacreate