rclone/vendor/github.com/koofr/go-httpclient/utils.go

15 lines
179 B
Go
Raw Normal View History

package httpclient
import (
"net/url"
"strings"
)
func EscapePath(path string) string {
u := url.URL{
Path: path,
}
return strings.Replace(u.String(), "+", "%2b", -1)
}