diff --git a/assets/index.js b/assets/index.js index ec8d49a..b96f7f8 100644 --- a/assets/index.js +++ b/assets/index.js @@ -1,7 +1,6 @@ /** * @typedef {object} PathItem * @property {"Dir"|"SymlinkDir"|"File"|"SymlinkFile"} path_type - * @property {boolean} is_symlink * @property {string} name * @property {number} mtime * @property {number} size @@ -153,10 +152,11 @@ function addBreadcrumb(value) { * @param {number} index */ function addPath(file, index) { - const url = getUrl(file.name) + let url = getUrl(file.name) let actionDelete = ""; let actionDownload = ""; if (file.path_type.endsWith("Dir")) { + url += "/"; actionDownload = `