zip

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZipExpander

type ZipExpander struct {
	FileSizeLimit int64
	FilesLimit    int
}

ZipExpander provides functionality to extract ZIP archives.

func (*ZipExpander) Expand

func (z *ZipExpander) Expand(ctx context.Context, src, dst string, umask os.FileMode) error

Expand extracts a ZIP file to the specified destination directory. It handles tilde expansion, enforces file size limits, and ensures secure extraction.

func (*ZipExpander) Matcher

func (z *ZipExpander) Matcher(extension string) bool

Matcher checks if the extension matches supported formats.

Jump to

Keyboard shortcuts

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