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

Ben Hoyt benhoyt at gmail.com
Tue Jul 1 03:28:00 CEST 2014


> 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().

-Ben


More information about the Python-Dev mailing list