Crate starbase_archive

Crate starbase_archive 

Source

Modules§

gz
Handles standard .gz files.
tar
Handles .tar, .tar.bz2, .tar.gz, and .tar.xz files.
zip
Handles .zip files.

Structs§

Archiver
An Archiver is an abstraction for packing and unpacking archives, that utilizes the same set of sources for both operations. For packing, the sources are the files that will be included in the archive. For unpacking, the sources are used for file tree diffing when extracting the archive.
TreeDiffer
The TreeDiffer will compare files within in archive to files at the destination, and only unpack files that differ, and also remove files from the destination that are not in the archive.

Enums§

ArchiveError

Traits§

ArchivePacker
Abstraction for packing archives.
ArchiveUnpacker
Abstraction for unpacking archives.

Functions§

get_full_file_extension
Extract the full extension from a file path without leading dot, like tar.gz, instead of just gz. If no file extension is found, returns None.`
get_supported_archive_extensions
Return a list of all supported archive file extensions, regardless of which Cargo features are enabled.
is_supported_archive_extension
Return true if the file path has a supported archive extension. This does not check against feature flags!
join_file_name
Join a file name from a list of parts, removing any empty parts.