Commit f3299a07 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Sort list returned by ListVisibleFiles.

If we didn't sort this list, files would be in arbitrary order.

Reviewed-by: iustinp
parent 4de0fa98
......@@ -907,7 +907,9 @@ def ListVisibleFiles(path):
"""Returns a list of all visible files in a directory.
"""
return [i for i in os.listdir(path) if not i.startswith(".")]
files = [i for i in os.listdir(path) if not i.startswith(".")]
files.sort()
return files
def GetHomeDir(user, default=None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment