Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: 9e19b4839fe32d2935306a630305e7b821544c14 Component: engine
18 lines
269 B
Go
18 lines
269 B
Go
// +build windows
|
|
|
|
package client
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/docker/docker/pkg/longpath"
|
|
)
|
|
|
|
func getContextRoot(srcPath string) (string, error) {
|
|
cr, err := filepath.Abs(srcPath)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return longpath.AddPrefix(cr), nil
|
|
}
|