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

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


Branch: CURRENT, Version: 1.5, Package name: py27-scandir-1.5, 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.


Required to run:
[devel/py-setuptools] [lang/python27]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: d1f7c7ed770ab7bfd9464e0d9e082ce0274c3eb6
RMD160: 92bd0d11b156283c44b88206f0f345df8252c03f
Filesize: 28.663 KB

Version history: (Expand)


CVS history: (Expand)


   2017-02-22 13:58:20 by Thomas Klausner | Files touched by this commit (4)
Log message:
Import py-scandir-1.5 as devel/py-scandir.

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.