Skip to content

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 ​

NameDescription
ZipExtractionOptions()

Properties ​

NameDescription
AllowOverwriteAllow overwriting of existing files
DeletePartialFilesOnFailureDelete a partially extracted output file if extraction fails mid-stream for that file.
DisallowColonInPathsIf true, reject entry paths containing ':' to prevent drive-letter / ADS tricks on Windows.
DisallowDotDotSegmentsIf true, reject any entry path containing '..' segments after normalization of separators.
DisallowRootedPathsIf true, reject entry paths that are rooted (e.g., start with '/' or 'C:').
EncodingEncoding for entry filenames
PreScanZipBombWhen true, Zip Bomb detection is run prior to attempting extaction
PreserveTimestampsPreserve file timestamps (LastWriteTimeUtc) from the ZIP entries when possible.