Show size of files contained in zip

This commit is contained in:
Luc Didry 2019-04-19 21:16:51 +02:00
parent 659e430578
commit 1fe07734d3
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ function spawnWebsocket(pa) {
.then(function (zip) {
var innerHTML = ['<h3>Zip content:</h3><ul>'];
zip.forEach(function (relativePath, zipEntry) {
innerHTML.push('<li>', zipEntry.name, '</li>');
innerHTML.push('<li>', zipEntry.name, ' (', filesize(zipEntry._data.uncompressedSize, {base: 10}), ')</li>');
});
innerHTML.push('</ul>');
pbd.append(innerHTML.join(''));