MCPcopy Index your code
hub / github.com/devspace-sh/devspace / getPrefix

Function getPrefix

pkg/devspace/hook/download.go:99–102  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

97}
98
99func getPrefix(file string) string {
100 // tar strips the leading '/' if it's there, so we will too
101 return strings.TrimLeft(file, "/")
102}
103
104func untarAll(reader io.Reader, destDir, prefix string, log logpkg.Logger) error {
105 gw, err := gzip.NewReader(reader)

Callers 1

downloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected