def scandir(path='.'): for name, d_ino, d_type in _scandir.scandir_helper(path): scandir_dirent = Dirent(d_ino, d_type) yield DirEntry(path, name, scandir_dirent, None)
def scandir(path='.'): for name, st in _scandir.scandir_helper(unicode(path)): yield DirEntry(path, name, None, st)