MCPcopy Index your code
hub / github.com/docker/cli / resolveLocalPath

Function resolveLocalPath

cli/command/container/cp.go:249–255  ·  view source on GitHub ↗
(localPath string)

Source from the content-addressed store, hash-verified

247}
248
249func resolveLocalPath(localPath string) (absPath string, _ error) {
250 absPath, err := filepath.Abs(localPath)
251 if err != nil {
252 return "", err
253 }
254 return archive.PreserveTrailingDotOrSeparator(absPath, localPath), nil
255}
256
257func copyFromContainer(ctx context.Context, dockerCLI command.Cli, copyConfig cpConfig) (err error) {
258 dstPath := copyConfig.destPath

Callers 2

copyFromContainerFunction · 0.85
copyToContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…