mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
parent
326f3b35ff
commit
28e9fd45cc
2
fs/fs.go
2
fs/fs.go
@ -1419,7 +1419,7 @@ func NewFs(ctx context.Context, path string) (Fs, error) {
|
||||
extraConfig := overridden.String()
|
||||
//Debugf(nil, "detected overriden config %q", extraConfig)
|
||||
md5sumBinary := md5.Sum([]byte(extraConfig))
|
||||
suffix := base64.RawStdEncoding.EncodeToString(md5sumBinary[:])
|
||||
suffix := base64.RawURLEncoding.EncodeToString(md5sumBinary[:])
|
||||
// 5 characters length is 5*6 = 30 bits of base64
|
||||
const maxLength = 5
|
||||
if len(suffix) > maxLength {
|
||||
|
Loading…
Reference in New Issue
Block a user