Skip to main content

Crate totebag

Crate totebag 

Source
Expand description

§Totebag

totebag is an archiving utilities that can archive and extract files supported several formats.

Modules§

archiver
This module provides an interface and struct for archiving the files. The supported formats are: cab, 7z, tar, tar.gz, tar.bz2, tar.xz, tar.zst, and zip. lha and rar formats are not supported for archiving.
extractor
This module provides the extractor for the archive file. The supported formats are cab, lha, rar, 7z, tar, tar.gz, tar.bz2, tar.xz, tar.zst, and zip.
format
Archive format management module. This module detects archive formats from file.

Structs§

ArchiveConfig
Configuration for creating archive files.
ExtractConfig
Configuration for extracting archive files.
ListConfig
Configuration for listing archive file contents.

Enums§

Error
Errors that can occur when using this library.
IgnoreType
Define the ignore types for directory traversing.
OutputFormat
Output format options for listing archive contents.

Functions§

archive
Create an archive file from the specified targets.
entries
Returns the entries (file list) in the given archive file.
extract
Extract an archive file to the specified destination directory.
list
Returns a formatted string representation of the entries in the given archive file.

Type Aliases§

Result
Define the result type for this library.