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

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


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

SHA1: 3b258fa95f1345d03e0373a4e04e263eaedc7194
RMD160: 098e8c9833e071c3c00ca7efe44f77cd0aa9e9da
Filesize: 28.975 KB

Version history: (Expand)


CVS history: (Expand)


   2017-10-04 14:25:45 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-scandir: update to 1.6

Version 1.6:
* Fixed 11: inode should be unsigned
* Fixed unicode handling on PyPy due to Py_FileSystemDefaultEncoding always \ 
being NULL there
* Improve tests on PyPy and Windows
* Add Travis and Appveyor CI testing
   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.