Commit f9e8dc31 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

sorted dir

parent d427f4cf
......@@ -570,7 +570,7 @@ class Web:
directory = self.check_path (segid, directory)
html = html_tmp + '<h1> Content of %s </h1> <div class="list"><ul>'%directory
for filename in glob(os.path.join(directory,'*')):
for filename in sorted(glob(os.path.join(directory,'*'))):
absPath = os.path.abspath(filename)
if os.path.islink(absPath):
html += '<li><a href="pipedir?segid=%d&directory='%int(segid) + absPath + '">' + os.path.basename(filename)+"("+os.path.realpath(filename)+")" + "</a></li>"
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