CabArchive

CabArchive class

This class represents a CAB archive file.

The CabArchive type exposes the following members:

Constructors

NameDescription
CabArchive(settings)Initializes a new instance of the CabArchive class prepared for compressing.
CabArchive(source_stream, load_options)Initializes a new instance of the CabArchive class and composes an entry list can be extracted from the archive.
CabArchive(path, load_options)Initializes a new instance of the CabArchive class and composes an entry list can be extracted from the archive.

Properties

NameDescription
entriesGets entries of CabEntry type constituting the archive.
file_entriesGets entries of IArchiveFileEntry type constituting the archive.
formatGets the archive format.

Methods

NameDescription
create_entry(name, path, new_entry_settings)Create a single entry within the archive.
create_entry(name, source, new_entry_settings)Create a single entry within the archive.
save(output_stream, save_options)Saves archive to the stream provided.
save(destination_file_name, save_options)Saves archive to the destination file provided.
create_entries(source_directory, include_root_directory)Adds to the archive all files recursively from the specified directory path.
extract_to_directory(destination_directory)Extracts all the files in the archive to the directory provided.

See Also