while True:
    p = libc.readdir64(dir_)
if not p:
    break
entry = Dirent.from_address(p)
print(entry.d_name)
Is there a way to efficiently yield every file in a directory containing millions of files?