1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 18:28:42 +00:00

Merge pull request #3565 from leo-b/1.1-maint-scandir2

remove unneeded sort from scandir_generic()
This commit is contained in:
TW 2018-01-19 19:18:34 +01:00 committed by GitHub
commit 3dd8d4097a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2086,7 +2086,7 @@ def __repr__(self):
def scandir_generic(path='.'):
"""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)