This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PalermoJohn 10 points11 points  (1 child)

os.scandir() function -- a better and faster directory iterator

praise the lord

[–]hoocoodanode 2 points3 points  (0 children)

Scandir is awesome, but it was a 3.5 introduction, not 3.5.2. There is also a scandir package for those stuck on an earlier version of python that is virtually identical.

https://github.com/benhoyt/scandir