Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: avoid unnecessary subdir in cache path Fixes #5316

albertony28e9fd45cc17
diff --git a/fs/fs.go b/fs/fs.go
index e4c6dc17d..d156b28cf 100644
--- a/fs/fs.go
+++ b/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 {