# ZipArchiveEditor

Edits one ZIP file by building a complete replacement beside it and committing it atomically.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ZipArchiveEditor.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L18)

**Modifiers**

static

Edits one ZIP file by building a complete replacement beside it and committing it atomically.

## Inheritance

- object
- ZipArchiveEditor

Filter members 

Show inherited

## Methods

`public static void Update(string archivePath, Action<ZipArchiveEdits> configure, ZipArchiveWriterOptions? options = null, ArchiveInspectionOptions? inputOptions = null, CancellationToken cancellationToken = default)` [#](#method-update-string-action-officeimo-archives-ziparchiveedits-officeimo-archives-ziparchivewriteroptions-officeimo-archives-archiveinspectionoptions-threading-cancellationtoken)

[ZipArchiveEditor.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ZipArchiveEditor.cs#L18)

Configures edits against the exact central-directory inventory being updated. Retained members use supported ZIP flags and stored, Deflate, or unencrypted Zstandard compression. Stored and Deflate members may use ZipCrypto or WinZip AES. Unchanged and renamed members retain their compressed payload and descriptor bytes. Additions and replacements use [ZipArchiveWriter](/api/archives/officeimo-archives-ziparchivewriter/). Archives with a central-directory digital signature require a separate signing workflow. The editor preserves the declared archive comment and refuses to rewrite ZIPs with bytes after it. Cancellation before publication leaves the original file available.

Parameters

**archivePath string required**

**configure System.Action<OfficeIMO.Archives.ZipArchiveEdits> required**

**options OfficeIMO.Archives.ZipArchiveWriterOptions? = null optional**

**inputOptions OfficeIMO.Archives.ArchiveInspectionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:251E3A5E06B0A257F3810B14A9817F17403725DAEA5BD049FA168C5C8605A1E0 -->
