mirror of
https://github.com/Grace-Solutions/PSMinIO.git
synced 2026-07-26 14:58:13 +00:00
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:
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user