1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 18:43:50 +00:00

qingstor: use lib/encoder

This commit is contained in:
Nick Craig-Wood
2019-09-21 13:24:30 +01:00
parent 35d6ff89bf
commit d122d1d191
3 changed files with 31 additions and 8 deletions

View File

@@ -271,6 +271,12 @@ const AzureBlob = encoder.MultiEncoder(
encoder.EncodeBackSlash |
encoder.EncodeRightPeriod)
// QingStor is the encoding used by the qingstor backend
const QingStor = encoder.MultiEncoder(
encoder.EncodeInvalidUtf8 |
encoder.EncodeCtl |
encoder.EncodeSlash)
// ByName returns the encoder for a give backend name or nil
func ByName(name string) encoder.Encoder {
switch strings.ToLower(name) {
@@ -316,7 +322,8 @@ func ByName(name string) encoder.Encoder {
return OpenDrive
case "pcloud":
return Pcloud
//case "qingstor":
case "qingstor":
return QingStor
case "s3":
return S3
//case "sftp":