./devel/py-scandir, Better directory iterator and faster os.walk()

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2022Q4, Version: 1.10.0nb1, Package name: py27-scandir-1.10.0nb1, Maintainer: pkgsrc-users

scandir() is a directory iteration function like os.listdir(),
except that instead of returning a list of bare filenames, it yields
DirEntry objects that include file type and stat information along
with the name. Using scandir() increases the speed of os.walk() by
2-20 times (depending on the platform and file system) by avoiding
unnecessary calls to os.stat() in most cases.


Master sites:

Filesize: 32.53 KB

Version history: (Expand)