archiver

package
v0.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiverTest

func ArchiverTest()

func XZDecompress

func XZDecompress(filePath string, destDir string) error

Types

type Archiver

type Archiver struct {
	DstDir      string
	SrcFilePath string
	ZipName     string
	UseAchiver  bool
	Password    string
}

func NewArchiver

func NewArchiver(srcFilePath string, dstDir string, useArchiver ...bool) (*Archiver, error)

func (*Archiver) SetPassword added in v0.5.8

func (that *Archiver) SetPassword(p string)

func (*Archiver) SetZipName added in v0.3.6

func (that *Archiver) SetZipName(zipName string)

func (*Archiver) UnArchive

func (that *Archiver) UnArchive() (string, error)

func (*Archiver) ZipDir added in v0.3.6

func (that *Archiver) ZipDir() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL