[Python-Dev] PEP 471 -- os.scandir() function -- a better and faster directory iterator

Ethan Furman ethan at stoneleaf.us
Tue Jul 1 03:44:57 CEST 2014

On 06/30/2014 06:28 PM, Ben Hoyt wrote:
>> I suppose the exact behavior is still under discussion, as there are only
>> two or three fields one gets "for free" on Windows (I think...), where as an
>> os.stat call would get everything available for the platform.
> No, Windows is nice enough to give you all the same stat_result fields
> during scandir (via FindFirstFile/FindNextFile) as a regular
> os.stat().

Very nice.  Even less reason then to throw it away.  :)


More information about the Python-Dev mailing list