Python Forum
Anyone play with os.scandir? It is awsome!
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone play with os.scandir? It is awsome!
#2
I did try it before it become a part of standard library(3.5-->).
Larz60+ Wrote:There's more, I haven't found out how to access it yet, but also gets the os.stat and 'other' information as well.
the claim is that it's 20 times faster than os.walk.
It's build in now,so using os.walk() is the same as using os.scandir().
Was called scandir.walk() before it was implemented into os.walk().

Contributing os.scandir() to Python
Ben Hoyt Wrote: It’s now used inside the popular os.walk() function to speed up walking directory trees by a significant amount.
Reply


Messages In This Thread
RE: Anyone play with os.scandir? It is awsome! - by snippsat - Sep-09-2017, 01:11 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020