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.

classification
Title: Expose DirEntry constructor
Type: enhancement Stage:
Components: Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: moloney
Priority: normal Keywords:

Created on 2016-08-18 19:38 by moloney, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg273063 - (view) Author: Brendan Moloney (moloney) Date: 2016-08-18 19:38
As per a discussion on python-ideas [1], the consensus is that we should allow users to create a DirEntry object themselves. This would just take a path and call stat on it and cache the result of that stat call.

Nick Coghlan mentioned possibly allowing a pre-existing stat result to optionally be passed into the constructor [2].

[1] https://mail.python.org/pipermail/python-ideas/2016-August/041716.html
[2] https://mail.python.org/pipermail/python-ideas/2016-August/041713.html
History
Date User Action Args
2022-04-11 14:58:35adminsetgithub: 71983
2016-08-18 19:38:12moloneycreate