Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

CpioArchiveWriter

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
12511d2fa560 with working tree changes
Modifiers
static

Writes deterministic newc, crc or odc cpio archives of portable regular files and directories.

Inheritance

  • object
  • CpioArchiveWriter

Remarks

Members are stored in input order with fixed numeric UID and GID. There are no links or special files.

Methods

Create 2 overloads
public static void Create(Stream destination, IEnumerable<ArchiveWriteEntry> entries, CpioArchiveWriterOptions? options = null, CancellationToken cancellationToken = default) #

Writes to the current position of a writable stream and leaves it open. The stream need not seek. Member preparation finishes before the first destination write. An output I/O failure can leave a partial result.

Parameters

destination System.IO.Stream required
entries System.Collections.Generic.IEnumerable<OfficeIMO.Archives.ArchiveWriteEntry> required
options OfficeIMO.Archives.CpioArchiveWriterOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public static void Create(string destinationPath, IEnumerable<ArchiveWriteEntry> entries, CpioArchiveWriterOptions? options = null, CancellationToken cancellationToken = default) #

Atomically creates a new cpio file. An existing file is not overwritten.

Parameters

destinationPath string required
entries System.Collections.Generic.IEnumerable<OfficeIMO.Archives.ArchiveWriteEntry> required
options OfficeIMO.Archives.CpioArchiveWriterOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional