mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 09:01:33 +02:00
encoder/filename: Wrap scsu package
This commit is contained in:
committed by
Nick Craig-Wood
parent
f14220ef1e
commit
5ca7f1fe87
16
lib/encoder/filename/scsu.go
Normal file
16
lib/encoder/filename/scsu.go
Normal file
@ -0,0 +1,16 @@
|
||||
package filename
|
||||
|
||||
import "errors"
|
||||
|
||||
const scsuNotEnabled = "scsu encoding not enabled in this build due to old go version"
|
||||
|
||||
// Functions wrap scsu package, since it doesn't build on old Go versions.
|
||||
// Remove once v1.13 is minimum supported version.
|
||||
|
||||
var scsuDecode = func(b []byte) (string, error) {
|
||||
return "", errors.New(scsuNotEnabled)
|
||||
}
|
||||
|
||||
var scsuEncodeStrict = func(src string, dst []byte) ([]byte, error) {
|
||||
return nil, errors.New(scsuNotEnabled)
|
||||
}
|
Reference in New Issue
Block a user