MCPcopy
hub / github.com/docker/compose / resolveLocalPath

Function resolveLocalPath

pkg/compose/cp.go:353–358  ·  view source on GitHub ↗
(localPath string)

Source from the content-addressed store, hash-verified

351}
352
353func resolveLocalPath(localPath string) (absPath string, err error) {
354 if absPath, err = filepath.Abs(localPath); err != nil {
355 return absPath, err
356 }
357 return archive.PreserveTrailingDotOrSeparator(absPath, localPath), nil
358}

Callers 2

copyToContainerMethod · 0.85
copyFromContainerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected