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

+ symlink

parent 753fb03a
......@@ -203,7 +203,9 @@ class Web:
html = html_tmp + '<h1> Content of %s </h1> <div class="list"><ul>'%directory
for filename in glob(os.path.join(directory,'*')):
absPath = os.path.abspath(filename)
if os.path.isdir(absPath):
if os.path.islink(absPath):
html += '<li><a href="pipedir?directory=' + absPath + '">' + os.path.basename(filename)+"("+os.path.realpath(filename)+")" + "</a></li>"
elif os.path.isdir(absPath):
html += '<li><a href="pipedir?directory=' + absPath + '">' + os.path.basename(filename) + "</a></li>"
else:
html += '<li><a href="download?filepath=' + absPath + '">' + os.path.basename(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