fix: file suffix extra slash

This commit is contained in:
qwqVictor 2024-05-21 23:40:18 +08:00
parent d69c7ac251
commit c51d66f3a5

View File

@ -22,7 +22,7 @@ function updateShareChoice(shareName, event) {
return false;
}
}
function getCurrentPath() { return window.filegatewayUrl + window.fileSessionId + "/" + encodeURI(window.fileShareName) + "/" + encodeURI(window.currentPath.join("/")) + "/" }
function getCurrentPath() { return window.filegatewayUrl + window.fileSessionId + "/" + encodeURI(window.fileShareName) + "/" + encodeURI(window.currentPath.join("/")) + (window.currentPath.length > 0 ? "/" : "") }
function getSize(fileSize) {
var size = parseFloat(fileSize);
var units = ['B', 'KB', 'MB', 'GB', 'TB'];