Documentation
¶
Overview ¶
Package hrx provides the primary functionality of the go-coreutils hrx command.
Index ¶
Constants ¶
View Source
const ( OpWrote = "wrote" OpListing = "listing" OpArchived = "archived" )
Variables ¶
View Source
var ( ErrNotRegular = errors.New("not a regular file") ErrNotPlainText = errors.New("not a plain text file") ErrPathRequired = errors.New("at least one path is required") ErrFileNotFound = errors.New("file not found") )
View Source
var ( // Notifier is the user notice output handler Notifier notify.Notifier )
Functions ¶
func Create ¶
Create produces an archive with the given `pathnames`, according to the Options given and writes the archive to the `dst` path
Types ¶
type Options ¶
type Options struct {
// All specifies to include hidden files and directories
All bool
// Recurse specifies to traverse directories recursively
Recurse bool
// PruneDir specifies to prune the top directory from files added to the
// Archive
PruneDir bool
// Boundary specifies the Archive boundary size to use
Boundary int
// TrimPrefix specifies an arbitrary string prefix to trim from files
// added to the Archive
TrimPrefix string
// KeepEmpty specifies to include empty directories when added to the
// Archive
KeepEmpty bool
}
Options are the complete configurable options for Create and Extract
Click to show internal directories.
Click to hide internal directories.