mirror of
https://github.com/Grace-Solutions/PSMinIO.git
synced 2026-07-26 14:58:13 +00:00
98778cc8e1
� BUG FIX:
• Fixed InvalidOperationException: 'Length properties are unavailable once an entry has been opened for writing'
• Added try-catch block around entry.CompressedLength access
• Use uncompressed size as fallback when CompressedLength is not available
• Ensures zip operations complete successfully without errors
✅ SOLUTION:
• CompressedLength property is only available after entry stream is fully closed
• Added graceful fallback to prevent operation failures
• Maintains accurate progress reporting and metrics collection
• Preserves all zip functionality while fixing the access timing issue
The zip archive creation now works reliably for all file types and sizes.