SharArchive

SharArchive class

This class represents a shar archive file.

The SharArchive type exposes the following members:

Constructors

NameDescription
SharArchive()Initializes a new instance of the SharArchive class.
SharArchive(path)Initializes a new instance of the SharArchive class prepared for decompressing.

Properties

NameDescription
entriesGets entries of SharEntry type constituting the archive.

Methods

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

See Also