MCPcopy Create free account
hub / github.com/containerd/nerdctl / ExtractTarFile

Function ExtractTarFile

cmd/nerdctl/helpers/testing.go:83–89  ·  view source on GitHub ↗
(dirPath, tarFilePath string)

Source from the content-addressed store, hash-verified

81}
82
83func ExtractTarFile(dirPath, tarFilePath string) error {
84 cmd := exec.Command("tar", "Cxf", dirPath, tarFilePath)
85 if out, err := cmd.CombinedOutput(); err != nil {
86 return fmt.Errorf("failed to run %v: %q: %w", cmd.Args, string(out), err)
87 }
88 return nil
89}

Callers 1

ExtractDockerArchiveFunction · 0.85

Calls 1

CommandMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…