Skip to content

release_2.1.2

Latest

Choose a tag to compare

@drpetersonfernandes drpetersonfernandes released this 17 Mar 18:15
· 2 commits to master since this release

1. New Features & Improvements

  • Disk Space Verification: Added a CheckDiskSpace method that calculates the total size of an archive's contents and verifies if the destination drive has sufficient free space before starting the extraction.
  • Extraction Metadata: The logs now display the total size of the files to be extracted alongside the file count and archive format.
  • Dependency Update: Updated the SharpCompress library from version 0.47.0 to 0.47.1.

2. Enhanced Error Handling

  • Specific Archive Exceptions: Added dedicated catch blocks for ArchiveException and ArchiveOperationException. This provides users with clearer feedback if an archive is corrupt, invalid, or in an unsupported format.
  • Disk Space Alerts: Improved the reporting of "not enough space" errors, providing a user-friendly message suggesting the user free up space rather than showing a generic IO error.
  • Refined Bug Reporting Filters: Updated the exception filtering logic to ensure that environmental issues (like low disk space) and archive-specific errors (like corruption or invalid passwords) are handled gracefully and not flagged as application bugs.

3. Code Cleanup

  • Simplified the extraction loop by pre-filtering entries to exclude directories.
  • Added necessary imports (SharpCompress.Common) to support new exception types.