Crate starbase_archive
source ·Modules§
- Handles standard
.gz
files. - Handles
.tar
,.tar.gz
, and.tar.xz
files. - Handles
.zip
files.
Structs§
- 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. - 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§
Traits§
- Abstraction for packing archives.
- Abstraction for unpacking archives.
Functions§
- Extract the full extension from a file path without leading dot, like
tar.gz
, instead of justgz
. If no file extension is found, returnsNone
.` - Return a list of all supported archive file extensions, regardless of which Cargo features are enabled.
- Return true if the file path has a supported archive extension. This does not check against feature flags!
- Join a file name from a list of parts, removing any empty parts.