XarArchive

XarArchive class

This class represents a xar archive file.

The XarArchive type exposes the following members:

Constructors

NameDescription
XarArchive(default_compression_settings)Initializes a new instance of the XarArchive class.
XarArchive(source_stream, load_options)Initializes a new instance of the XarArchive class and composes an entry list can be extracted from the archive.
XarArchive(path, load_options)Initializes a new instance of the XarArchive class and composes an entry list can be extracted from the archive.

Properties

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

Methods

NameDescription
create_entry(name, source_path, open_immediately, compression_settings)Create a single entry within the archive.
create_entry(name, source, compression_settings)Create a single entry within the archive.
save(destination_file_name, save_options)Saves archive to the destination file provided.
save(output, save_options)Saves archive to the stream provided.
extract_to_directory(destination_directory)Extracts all the files in the archive to the directory provided.
create_entries(source_directory, include_root_directory, compression_settings)Adds to the archive all the files and directories recursively in the directory given.
delete_entry(entry)Removes the first occurrence of a specific entry from the entry list.

See Also