mirror of https://github.com/borgbackup/borg.git
remove unneeded sort from scandir_generic()
This commit is contained in:
parent
37a475e3ac
commit
b5fbeed6ed
|
@ -2086,7 +2086,7 @@ class GenericDirEntry:
|
||||||
|
|
||||||
def scandir_generic(path='.'):
|
def scandir_generic(path='.'):
|
||||||
"""Like os.listdir(), but yield DirEntry objects instead of returning a list of names."""
|
"""Like os.listdir(), but yield DirEntry objects instead of returning a list of names."""
|
||||||
for name in sorted(os.listdir(path)):
|
for name in os.listdir(path):
|
||||||
yield GenericDirEntry(path, name)
|
yield GenericDirEntry(path, name)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue