MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / NewZipArchiver

Function NewZipArchiver

agent/utils/files/zip.go:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func NewZipArchiver() ShellArchiver {
19 return &ZipArchiver{}
20}
21
22func (z ZipArchiver) Extract(ctx context.Context, filePath, dstDir string, secret string) error {
23 if err := checkCmdAvailability("unzip"); err != nil {

Callers 3

CompressMethod · 0.85
NewShellArchiverFunction · 0.85
NewExtractShellArchiverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected