CpioArchive

CpioArchive class

This class represents cpio archive file.

public class CpioArchive : IDisposable

Constructors

Name Description
CpioArchive() Initializes a new instance of the CpioArchive class.
CpioArchive(Stream) Initializes a new instance of the CpioArchive class and composes entries list can be extracted from the archive.
CpioArchive(string) Initializes a new instance of the CpioArchive class and composes entries list can be extracted from the archive.

Properties

Name Description
Entries { get; } Gets entries of CpioEntry type constituting the archive.

Methods

Name Description
CreateEntries(DirectoryInfo, bool) Adds to the archive all the files and directories recursively in the directory given.
CreateEntries(string, bool) Adds to the archive all the files and directories recursively in the directory given.
CreateEntry(string, Stream) Create single entry within the archive.
CreateEntry(string, FileInfo, bool) Create single entry within the archive.
CreateEntry(string, string, bool) Create single entry within the archive.
DeleteEntry(CpioEntry) Removes the first occurrence of a specific entry from the entries list.
DeleteEntry(int) Removes the entry from the entries list by index.
Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ExtractToDirectory(string) Extracts all the files in the archive to the directory provided.
Save(Stream, CpioFormat) Saves archive to the stream provided.
Save(string, CpioFormat) Saves archive to destination file provided.

See Also