mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-24 23:57:23 -04:00
Merge pull request #3565 from leo-b/1.1-maint-scandir2
remove unneeded sort from scandir_generic()
This commit is contained in:
commit
3dd8d4097a
1 changed files with 1 additions and 1 deletions
|
|
@ -2086,7 +2086,7 @@ class GenericDirEntry:
|
|||
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue