Appearance
ZipExtractionOptions Class
Definition
Controls safety limits and behaviors when extracting ZIP archives. These limits are enforced during extraction (bytes actually written), which is the only deterministic protection against malformed metadata and zip bombs.
- Namespace:
JASE.Compression - Assembly:
JASE.Compression.dll
Constructors
| Name | Description |
|---|---|
ZipExtractionOptions() |
Properties
| Name | Description |
|---|---|
AllowOverwrite | Allow overwriting of existing files |
DeletePartialFilesOnFailure | Delete a partially extracted output file if extraction fails mid-stream for that file. |
DisallowColonInPaths | If true, reject entry paths containing ':' to prevent drive-letter / ADS tricks on Windows. |
DisallowDotDotSegments | If true, reject any entry path containing '..' segments after normalization of separators. |
DisallowRootedPaths | If true, reject entry paths that are rooted (e.g., start with '/' or 'C:'). |
Encoding | Encoding for entry filenames |
PreScanZipBomb | When true, Zip Bomb detection is run prior to attempting extaction |
PreserveTimestamps | Preserve file timestamps (LastWriteTimeUtc) from the ZIP entries when possible. |