diff --git a/cmd/endpoint.go b/cmd/endpoint.go index c2fa8f0c5..64313943e 100644 --- a/cmd/endpoint.go +++ b/cmd/endpoint.go @@ -22,6 +22,7 @@ import ( "net/url" "path" "path/filepath" + "runtime" "sort" "strconv" "strings" @@ -130,6 +131,26 @@ func NewEndpoint(arg string) (ep Endpoint, e error) { return ep, fmt.Errorf("empty or root path is not supported in URL endpoint") } + // On windows having a preceding "/" will cause problems, if the + // command line already has C:/