2015-08-24 21:07:22 +00:00
|
|
|
// +build windows
|
|
|
|
|
2015-12-21 22:00:22 +00:00
|
|
|
package client
|
2015-08-24 21:07:22 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|