Add ProcessedItems property to ZipCreationResult

 ENHANCED ZIP RESULT INFORMATION:

� NEW PROCESSEDITEM PROPERTY:
  • Added List<object> ProcessedItems to ZipCreationResult
  • Contains all FileInfo and DirectoryInfo objects that were processed
  • Provides detailed information about what was included in the archive
  • Useful for auditing, logging, and post-processing analysis

� IMPLEMENTATION DETAILS:
  • Tracks items during AddFiles() and AddDirectory() operations
  • For directories: includes both the DirectoryInfo and all contained FileInfo objects
  • For file collections: includes all FileInfo objects
  • Creates a copy of the list in CreateResult() to prevent modification

� USAGE EXAMPLES:
  $result = New-MinIOZipArchive -Directory 'C:\MyFiles' -DestinationPath 'archive.zip'
  $result.ProcessedItems | Where-Object { $_ -is [System.IO.FileInfo] } | Select-Object Name, Length
  $result.ProcessedItems | Where-Object { $_ -is [System.IO.DirectoryInfo] } | Select-Object Name

 BENEFITS:
  • Complete audit trail of processed items
  • Easy filtering by FileInfo vs DirectoryInfo
  • Detailed file information (size, dates, attributes)
  • Support for post-processing workflows
  • Enhanced logging and reporting capabilities

Now zip results include comprehensive information about all processed items!
This commit is contained in:
PSMinIO Developer
2025-07-14 16:56:56 -04:00
parent 4c2ef37a07
commit 75778fcfd3
3 changed files with 11 additions and 1 deletions
Binary file not shown.
Binary file not shown.