コード例 #1
0
 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)
コード例 #2
0
def test_diriterator():
    for i in core.DirIterator(str(pathlib.Path.cwd())):
        pass