Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (0m)  pkgsrc-2024Q1 (10d)  pkgsrc-2023Q4 (57d)  pkgsrc-2023Q2 (90d)  pkgsrc-2023Q3 (169d) 

2024-05-28 10:59:07 UTC Now

2017-02-22 12:58:20 UTC MAIN commitmail json YAML

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.

(wiz)