From e7c00b3c8be2aa5607862d9786bece724f98d8cd Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 12 Feb 2021 22:59:02 +0400 Subject: [PATCH] Fast fix. Forgot that convertSize returns array of size and unit. --- files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files.js b/files.js index 42cc7af..cec9a2e 100644 --- a/files.js +++ b/files.js @@ -83,7 +83,7 @@ async function getDirectoryList(dir_path, base_url) { dirs.sort(sort_by_name); files.sort(sort_by_name); - return [dirs.concat(files), dirs.length, files.length, convertSize(total_files_size)]; + return [dirs.concat(files), dirs.length, files.length, convertSize(total_files_size).join(' ')]; } function setRoutes(router) {