def yield_child_indexes(self, index): if not self.hasChildren(index): return None path = self.filePath(index) flags = self.filter() | QtCore.QDir.NoDotAndDotDot for it in core.DirIterator(path, flags): yield self.index(it)
def test_diriterator(): for i in core.DirIterator(str(pathlib.Path.cwd())): pass