diff --git a/assets/index.js b/assets/index.js index 2b51d2a..91d2cba 100644 --- a/assets/index.js +++ b/assets/index.js @@ -477,6 +477,8 @@ function addPath(file, index) { ${actionDelete} ${actionEdit} `; + + let sizeDisplay = isDir ? "" : formatSize(file.size).join(" "); $pathsTableBody.insertAdjacentHTML("beforeend", ` @@ -487,7 +489,7 @@ function addPath(file, index) { ${encodedName} ${formatMtime(file.mtime)} - ${formatSize(file.size).join(" ")} + ${sizeDisplay} ${actionCell} `); }