MCPcopy Create free account
hub / github.com/devspace-sh/devspace / getRelativeFromFullPath

Function getRelativeFromFullPath

helper/server/tar.go:282–284  ·  view source on GitHub ↗
(fullpath string, prefix string)

Source from the content-addressed store, hash-verified

280}
281
282func getRelativeFromFullPath(fullpath string, prefix string) string {
283 return strings.TrimPrefix(strings.ReplaceAll(strings.ReplaceAll(fullpath[len(prefix):], "\\", "/"), "//", "/"), ".")
284}
285
286func createFileInformationFromStat(relativePath string, stat os.FileInfo) *fileInformation {
287 fileInformation := &fileInformation{

Callers 1

untarNextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected