{% extends base.html %} {% block content %} {% import urllib.parse %}

点击上传或将文件拖拽到此处

{% set paths = handler.request.path.rstrip('/').split('/') %} {% for i, path in enumerate(paths) %} {% if i > 2 %} {{ urllib.parse.unquote(path) }} {% end %} {% end %}
{% if handler.get_cookie('display') %} {% else %} {% for doc in entries %} {% end %}
{% if handler.get_cookie('preview') and doc.path.suffix.lower() in ['.jpg', '.jpeg', '.png', '.bmp', '.gif', '.webp'] %} {% elif handler.get_cookie('preview') and doc.path.suffix.lower() in ['.mp3', '.amr', '.ogg', '.wav'] %} {% else %} {% set icon = 'folder.png' if doc.is_dir else handler.icon.get(doc.path.suffix.lower(), 'file.png') %} {% end %} {% if absolute %}{{ doc.path }}{% else %}{{ doc.path.name }}{% end %} {{ doc.mtime }} {{ doc.size }}
{% end %}
{% end %}