From b5fbeed6ed3d9408f3dabf2d6f4f8e1ade500241 Mon Sep 17 00:00:00 2001 From: Alexander 'Leo' Bergolth Date: Fri, 19 Jan 2018 17:38:15 +0100 Subject: [PATCH] remove unneeded sort from scandir_generic() --- src/borg/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/helpers.py b/src/borg/helpers.py index 64ece5047..8efeba3b4 100644 --- a/src/borg/helpers.py +++ b/src/borg/helpers.py @@ -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)