zip

package
v0.0.0-...-94134c1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveArchivePath

func ResolveArchivePath(archivePath string) string

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

Archive represents a password-protected archive

func NewArchive

func NewArchive(archivePath, password string) *Archive

NewArchive creates a new Archive instance

func (*Archive) TryUnzip

func (a *Archive) TryUnzip() bool

TryUnzip verifies if the password is correct without extracting files Returns true if successful, false otherwise

func (*Archive) Unzip

func (a *Archive) Unzip(dest string) error

Unzip extracts the archive to the specified directory

Jump to

Keyboard shortcuts

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