Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ArchiveWriterOptions

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
abstract

Settings shared by the ZIP and TAR writers. The defaults produce identical bytes for identical input on every platform and target framework.

Inheritance

  • object
  • ArchiveWriterOptions

Derived Types

Properties

public DateTimeOffset? Timestamp { get; set; } #

The time written for every entry. When null, an entry's own time is used, and entries without one get the format's fixed default (1980-01-01 for ZIP, the Unix epoch for TAR).

public bool ClampToTimestamp { get; set; } #

When true and ArchiveWriterOptions.Timestamp is set, only entry times later than it are replaced, matching the reproducible-builds clamping convention. Entries without a time still get ArchiveWriterOptions.Timestamp.

public bool PreserveFileTimes { get; set; } #

When true, the directory helpers record each file's last write time. Defaults to false so that checkout and copy times do not change the archive bytes.

public int MaxPathDepth { get; set; } #

Maximum path segments per member. Defaults to 64, the extraction default.

public int MaxPathLength { get; set; } #

Maximum characters per member path. Defaults to 1024, the extraction default.