Documentation ¶
Index ¶
- Variables
- func IsSubdir(upper, lower string) (bool, error)
- func PrepareFileNameAndType(argFile, argType string) (outFileName, outType string)
- type Dumper
- func (dumper *Dumper) AddFile(filePath, absPath string) error
- func (dumper *Dumper) AddReader(r io.ReadCloser, info os.FileInfo, customName string) error
- func (dumper *Dumper) AddRecursiveExclude(insidePath, absPath string, excludes []string) error
- func (dumper *Dumper) GlobalExcludeAbsPath(absPaths ...string)
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedOutputTypes = []string{"zip", "tar", "tar.sz", "tar.gz", "tar.xz", "tar.bz2", "tar.br", "tar.lz4", "tar.zst"}
Functions ¶
func PrepareFileNameAndType ¶
PrepareFileNameAndType prepares the output file name and type, if the type is not supported, it returns an empty "outType"
Types ¶
type Dumper ¶
type Dumper struct { Writer archiver.Writer Verbose bool // contains filtered or unexported fields }
func (*Dumper) AddRecursiveExclude ¶
func (*Dumper) GlobalExcludeAbsPath ¶
Click to show internal directories.
Click to hide internal directories.