slackbuilds/python/python-scandir
Dimitris Zlatanidis f0ec59347d python/python-scandir: Added (directory iterator).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-01-09 07:12:22 +07:00
..
README python/python-scandir: Added (directory iterator). 2016-01-09 07:12:22 +07:00
python-scandir.SlackBuild python/python-scandir: Added (directory iterator). 2016-01-09 07:12:22 +07:00
python-scandir.info python/python-scandir: Added (directory iterator). 2016-01-09 07:12:22 +07:00
slack-desc python/python-scandir: Added (directory iterator). 2016-01-09 07:12:22 +07:00

README

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 youre using Python version 3.5+, os.scandir() and the 
speed improvements to os.walk() are already available in the 
standard library.