Skip to content
Snippets Groups Projects

WIP: Upload issues

Merged Carsten Fortmann-Grote requested to merge upload_issues into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -420,8 +420,12 @@ def files(req_path):
if req_path.endswith('/'):
req_path = req_path[:-1]
logger.warning("Request dir is %s in (%s).", req_path, os.path.dirname(req_path))
# Only insert link to parent dir if not at top level.
link_to_parent = True
if os.path.dirname(req_path) == "/":
link_to_parent = False
return render_template('files.html', req_path=req_path, files=item_list, dirs=dirs, link_to_parent=link_to_parent)
else:
# Serve the file.
Loading