
## Archive class

This class represents a zip archive file. Use it to compose, extract, or update zip archives.

The Archive type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|Archive(new_entry_settings)|Initializes a new instance of the [Archive](/zip/python-net/aspose.zip/archive/) class with optional settings for its entries.|
|Archive(source_stream, load_options, new_entry_settings)|Initializes a new instance of the [Archive](/zip/python-net/aspose.zip/archive/) class and composes an entry list can be extracted from the archive.|
|Archive(path, load_options, new_entry_settings)|Initializes a new instance of the [Archive](/zip/python-net/aspose.zip/archive/) class and composes an entry list can be extracted from the archive.|
|Archive(main_segment, segments_in_order, load_options)|Initializes a new instance of the [Archive](/zip/python-net/aspose.zip/archive/) class from multi-volume ZIP archive and composes an entry list can be extracted from the archive.|
## Properties
| Name | Description |
| :- | :- |
|new_entry_settings|Compression and encryption settings used for newly added [ArchiveEntry](/zip/python-net/aspose.zip/archiveentry/) items.|
|comment|Gets comment for the whole archive.|
|entries|Gets entries of [ArchiveEntry](/zip/python-net/aspose.zip/archiveentry/) type constituting the archive.|
|file_entries|Gets entries of [IArchiveFileEntry](/zip/python-net/aspose.zip/iarchivefileentry/) type constituting the archive.|
|format|Gets the archive format.|
## Methods
| Name | Description |
| :- | :- |
|create_entry(name, path, open_immediately, new_entry_settings)|Create a single entry within the archive.|
|create_entry(name, source, new_entry_settings)|Create a single entry within the archive.|
|create_entry(name, file_info, open_immediately, new_entry_settings)|Create a single entry within the archive.|
|create_entry(name, source, new_entry_settings, file_info)|Create a single entry within the archive.|
|create_entries(directory, include_root_directory)|Add to the archive all files and directories recursively in the directory given.|
|create_entries(source_directory, include_root_directory)|Add to the archive all files and directories recursively in the directory given.|
|delete_entry(entry)|Removes the first occurrence of the specific entry from the entry list.|
|delete_entry(entry_index)|  |
|save(output_stream, save_options)|Saves archive to the stream provided.|
|save(destination_file_name, save_options)|Saves archive to the destination file provided.|
|save_split(destination_directory, options)|Saves multi-volume archive to destination directory provided.|
|save_split(volume_stream_provider, options)|Saves a multi-volume archive to streams supplied by a volume provider.|
|extract_to_directory(destination_directory)|Extracts all the files in the archive to the directory provided.|

### See Also

* namespace [aspose.zip](/zip/python-net/aspose.zip/)
* assembly [Aspose.Zip](/zip/python-net/)

