Documentation ¶
Index ¶
- func Extract(origReader io.Reader, destFolder string, options ...Option) error
- func UnzipFolder(source, destination string) error
- func WriteTar(writer io.Writer, localPath string, compress bool) error
- func WriteTarExclude(writer io.Writer, localPath string, compress bool, excludedPaths []string) error
- type Archiver
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnzipFolder ¶
Types ¶
type Archiver ¶
type Archiver struct {
// contains filtered or unexported fields
}
Archiver is responsible for compressing specific files and folders within a target directory
func NewArchiver ¶
NewArchiver creates a new archiver
func (*Archiver) AddToArchive ¶
AddToArchive adds a new path to the archive
Click to show internal directories.
Click to hide internal directories.