zip

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsManifest

func ContainsManifest(dir string) bool

ContainsManifest checks if a directory contains a manifest.json file.

func ContainsManifestInZip

func ContainsManifestInZip(data []byte) (bool, error)

ContainsManifestInZip checks if a zip archive contains a manifest.json file.

func ShouldExclude

func ShouldExclude(relPath string, isDir bool) bool

ShouldExclude checks if a file or directory should be excluded from the zip.

func ZipDirectory

func ZipDirectory(dir string) ([]byte, error)

ZipDirectory creates a zip archive from a directory, excluding default patterns. Symlinks are skipped to prevent directory traversal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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