mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
04c2816238
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
13 lines
535 B
Text
13 lines
535 B
Text
scandir, a better directory iterator and faster os.walk()
|
|
|
|
scandir() is a generator version of os.listdir() that returns
|
|
an iterator over files in a directory, and also exposes the
|
|
extra information most OSes provide while iterating files in a
|
|
directory (such as type and stat information).
|
|
|
|
This module also includes a version of os.walk() that uses
|
|
scandir() to speed it up significantly.
|
|
|
|
NOTE: If you're using Python version 3.5+, os.scandir() and the
|
|
speed improvements to os.walk() are already available in the
|
|
standard library.
|