Class
CpioArchiveWriter
OfficeIMO.Archives
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
- entries System.Collections.Generic.IEnumerable<OfficeIMO.Archives.ArchiveWriteEntry>
- options OfficeIMO.Archives.CpioArchiveWriterOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- entries System.Collections.Generic.IEnumerable<OfficeIMO.Archives.ArchiveWriteEntry>
- options OfficeIMO.Archives.CpioArchiveWriterOptions? = null
- cancellationToken System.Threading.CancellationToken = default