1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/sysutils/py-scandir/pkg-descr
Rene Ladan 1def5973ea 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
operating systems 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.

WWW: https://github.com/benhoyt/scandir

Note: version 1.3 is available, but Pootle 2.8.0bX insists on
version 1.2 for the time being.

Sponsored by:	EuroBSDCon 2016 Belgrade
2016-09-24 16:46:14 +00:00

15 lines
589 B
Plaintext

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
operating systems 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.
WWW: https://github.com/benhoyt/scandir