diff --git a/src/network/html/FilesPage.html b/src/network/html/FilesPage.html index 91c1967d7..205787d5c 100644 --- a/src/network/html/FilesPage.html +++ b/src/network/html/FilesPage.html @@ -1875,7 +1875,10 @@ totalSize += file.size; }); - document.getElementById('folder-summary').innerHTML = `${folderCount} folders, ${files.length - folderCount} files, ${formatFileSize(totalSize)}`; + const fileCount = files.length - folderCount; + const folderLabel = folderCount === 1 ? 'folder' : 'folders'; + const fileLabel = fileCount === 1 ? 'file' : 'files'; + document.getElementById('folder-summary').innerHTML = `${folderCount} ${folderLabel}, ${fileCount} ${fileLabel}, ${formatFileSize(totalSize)}`; if (files.length === 0) { fileTable.innerHTML = '