github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/api/client/utils_windows.go (about)

     1  // +build windows
     2  
     3  package client
     4  
     5  import (
     6  	"path/filepath"
     7  
     8  	"github.com/docker/docker/pkg/longpath"
     9  )
    10  
    11  func getContextRoot(srcPath string) (string, error) {
    12  	cr, err := filepath.Abs(srcPath)
    13  	if err != nil {
    14  		return "", err
    15  	}
    16  	return longpath.AddPrefix(cr), nil
    17  }