mirror of
https://github.com/rclone/rclone.git
synced 2024-11-30 04:23:48 +08:00
1d14e30383
* added koofr client SDK dep for koofr backend
15 lines
179 B
Go
15 lines
179 B
Go
package httpclient
|
|
|
|
import (
|
|
"net/url"
|
|
"strings"
|
|
)
|
|
|
|
func EscapePath(path string) string {
|
|
u := url.URL{
|
|
Path: path,
|
|
}
|
|
|
|
return strings.Replace(u.String(), "+", "%2b", -1)
|
|
}
|