zip

package
v0.175.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ArchiveFileCountSoftLimit = 32768

ArchiveFileCountSoftLimit is the threshold count of files added to the archive before a warning is printed. The value here (2^15) is somewhat arbitrary. In testing, ~32K files in the archive resulted in about 30s for download and extraction.

View Source
const BaseFilepathLength = 53

BaseFilepathLength represents the path length where project will be unpacked. Example: "D:\sauce-playwright-runner\1.12.0\bundle\__project__\"

View Source
const MaxFilepathLength = 255

MaxFilepathLength represents the maximum path length acceptable.

Variables

This section is empty.

Functions

func ArchiveFiles

func ArchiveFiles(targetFileName string, targetDir string, sourceDir string, files []string, matcher sauceignore.Matcher) (string, error)

ArchiveFiles walks through sourceDir, collects specified files, compresses them into target dir and returns the zip file path.

func ArchiveNodeModules

func ArchiveNodeModules(targetDir string, sourceDir string, matcher sauceignore.Matcher, dependencies []string) (string, error)

ArchiveNodeModules collects npm dependencies from sourceDir and compresses them into targetDir.

func ArchiveRunnerConfig

func ArchiveRunnerConfig(project interface{}, tempDir string) (string, error)

ArchiveRunnerConfig compresses runner config into `config.zip`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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