mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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
|
|
}
|