Show size of files contained in zip
This commit is contained in:
parent
659e430578
commit
1fe07734d3
|
@ -130,7 +130,7 @@ function spawnWebsocket(pa) {
|
||||||
.then(function (zip) {
|
.then(function (zip) {
|
||||||
var innerHTML = ['<h3>Zip content:</h3><ul>'];
|
var innerHTML = ['<h3>Zip content:</h3><ul>'];
|
||||||
zip.forEach(function (relativePath, zipEntry) {
|
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>');
|
innerHTML.push('</ul>');
|
||||||
pbd.append(innerHTML.join(''));
|
pbd.append(innerHTML.join(''));
|
||||||
|
|
Loading…
Reference in New Issue