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

Function getRelativeFromFullPath

pkg/devspace/sync/util.go:8–10  ·  view source on GitHub ↗
(fullPath string, prefix string)

Source from the content-addressed store, hash-verified

6)
7
8func getRelativeFromFullPath(fullPath string, prefix string) string {
9 return strings.TrimPrefix(strings.ReplaceAll(filepath.ToSlash(fullPath[len(prefix):]), "//", "/"), ".")
10}

Callers 5

untarNextMethod · 0.70
CalculateLocalStateMethod · 0.70
deleteSafeRecursiveMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected