zip

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package zip implements an Expander for ZIP archives.

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