MCPcopy Create free account
hub / github.com/buildpacks/pack / parsePath

Function parsePath

pkg/client/input_image_reference.go:81–91  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

79}
80
81func parsePath(path string) string {
82 var result string
83 if filepath.IsAbs(path) && runtime.GOOS == "windows" {
84 dir, fileWithTag := filepath.Split(path)
85 file := removeTag(fileWithTag)
86 result = filepath.Join(dir, file)
87 } else {
88 result = removeTag(path)
89 }
90 return result
91}
92
93func removeTag(path string) string {
94 result := path

Callers 1

FullNameMethod · 0.85

Calls 1

removeTagFunction · 0.85

Tested by

no test coverage detected