Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/Console/Main.cpp')
-rwxr-xr-xCPP/7zip/UI/Console/Main.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/CPP/7zip/UI/Console/Main.cpp b/CPP/7zip/UI/Console/Main.cpp
index 17eb29ec..7afc6f7c 100755
--- a/CPP/7zip/UI/Console/Main.cpp
+++ b/CPP/7zip/UI/Console/Main.cpp
@@ -1,4 +1,4 @@
-// Main.cpp
+/ Main.cpp
#include "StdAfx.h"
@@ -396,12 +396,13 @@ int Main2(
eo.Properties = options.ExtractProperties;
#endif
UString errorMessage;
+ CDecompressStat stat;
HRESULT result = DecompressArchives(
codecs,
options.ArchivePathsSorted,
options.ArchivePathsFullSorted,
options.WildcardCensor.Pairs.Front().Head,
- eo, &openCallback, ecs, errorMessage);
+ eo, &openCallback, ecs, errorMessage, stat);
if (!errorMessage.IsEmpty())
{
stdStream << endl << "Error: " << errorMessage;
@@ -409,15 +410,20 @@ int Main2(
result = E_FAIL;
}
+ stdStream << endl << endl << "Total:" << endl;
if (ecs->NumArchives > 1)
- {
- stdStream << endl << endl << "Total:" << endl;
stdStream << "Archives: " << ecs->NumArchives << endl;
+ {
+ stdStream << "Folders: " << stat.NumFolders << endl;
+ stdStream << "Files: " << stat.NumFiles << endl;
+ stdStream << "Size: " << stat.UnpackSize << endl;
+ stdStream << "Compressed: " << stat.PackSize << endl;
}
if (ecs->NumArchiveErrors != 0 || ecs->NumFileErrors != 0)
{
if (ecs->NumArchives > 1)
{
+ stdStream << endl;
if (ecs->NumArchiveErrors != 0)
stdStream << "Archive Errors: " << ecs->NumArchiveErrors << endl;
if (ecs->NumFileErrors != 0)