archiver

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiverTest

func ArchiverTest()

func ExtractDMG

func ExtractDMG(sourcePath, destinationPath string) error

ExtractDMG mounts the disk image at the source path, copies the contents of the resulting volume to the destination path, then unmounts the volume.

func XZDecompress

func XZDecompress(filePath string, destDir string) error

func ZipTest

func ZipTest()

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) GetZipPath

func (that *Archiver) GetZipPath() string

func (*Archiver) SetPassword

func (that *Archiver) SetPassword(p string)

func (*Archiver) SetZipName

func (that *Archiver) SetZipName(zipName string)

func (*Archiver) UnArchive

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

func (*Archiver) ZipDir

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

Jump to

Keyboard shortcuts

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