diff --git a/Module/PSMinIO/bin/PSMinIO.dll b/Module/PSMinIO/bin/PSMinIO.dll index c2043b4..9cd171d 100644 Binary files a/Module/PSMinIO/bin/PSMinIO.dll and b/Module/PSMinIO/bin/PSMinIO.dll differ diff --git a/Module/PSMinIO/bin/PSMinIO.pdb b/Module/PSMinIO/bin/PSMinIO.pdb index 968a292..5f6748b 100644 Binary files a/Module/PSMinIO/bin/PSMinIO.pdb and b/Module/PSMinIO/bin/PSMinIO.pdb differ diff --git a/src/Utils/ZipArchiveBuilder.cs b/src/Utils/ZipArchiveBuilder.cs index cd958a9..9926d40 100644 --- a/src/Utils/ZipArchiveBuilder.cs +++ b/src/Utils/ZipArchiveBuilder.cs @@ -333,6 +333,7 @@ namespace PSMinIO.Utils OnFileAdded(new ZipFileEventArgs { FileName = fileInfo.Name, + FullPath = fileInfo.FullName, EntryName = entryName, UncompressedSize = fileInfo.Length, CompressedSize = compressedSize, diff --git a/src/Utils/ZipBuilder.cs b/src/Utils/ZipBuilder.cs index ad20f48..7701f32 100644 --- a/src/Utils/ZipBuilder.cs +++ b/src/Utils/ZipBuilder.cs @@ -18,6 +18,7 @@ namespace PSMinIO.Utils private readonly ThreadSafeProgressCollector _progressCollector; private bool _disposed = false; private int _totalFiles = 0; + private int _currentFileIndex = 0; private readonly List _processedItems = new List(); // Activity IDs for progress tracking @@ -177,8 +178,14 @@ namespace PSMinIO.Utils /// private void OnFileAdded(object? sender, ZipFileEventArgs e) { - _progressCollector.QueueVerboseMessage("Compressed: {0} -> {1} ({2:F1}% reduction, {3})", - e.FileName, + // Increment the current file counter + _currentFileIndex++; + + // Log with counter and full path: "Counter of Total - FullPath" + _progressCollector.QueueVerboseMessage("{0} of {1} - {2} -> {3} ({4:F1}% reduction, {5})", + _currentFileIndex, + _totalFiles, + e.FullPath, SizeFormatter.FormatBytes(e.CompressedSize), e.CompressionEfficiency, SizeFormatter.FormatDuration(e.ProcessingTime)); diff --git a/src/Utils/ZipEventArgs.cs b/src/Utils/ZipEventArgs.cs index 87a6bf3..0dfcae8 100644 --- a/src/Utils/ZipEventArgs.cs +++ b/src/Utils/ZipEventArgs.cs @@ -58,6 +58,11 @@ namespace PSMinIO.Utils /// public string FileName { get; set; } = string.Empty; + /// + /// Full path of the original file + /// + public string FullPath { get; set; } = string.Empty; + /// /// Entry name in the zip archive ///