"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
uptobox: fix root path handling - fixes #5903
buengese3a20929db405
diff --git a/backend/uptobox/uptobox.go b/backend/uptobox/uptobox.goindex 94ef96fd9..5ffd4baf1 100644--- a/backend/uptobox/uptobox.go+++ b/backend/uptobox/uptobox.go@@ -163,7 +163,7 @@ func (f *Fs) splitPathFull(pth string) (string, string) {}// splitPath is modified splitPath version that doesn't include the seperator-// in the base part+// in the base pathfunc (f *Fs) splitPath(pth string) (string, string) {// chop of any leading or trailing '/'pth = strings.Trim(pth, "/")@@ -201,7 +201,11 @@ func NewFs(ctx context.Context, name string, root string, config configmap.Mappeopt: *opt,pacer: fs.NewPacer(ctx, pacer.NewDefault(pacer.MinSleep(minSleep), pacer.MaxSleep(maxSleep), pacer.DecayConstant(decayConstant), pacer.AttackConstant(attackConstant))),}- f.root = root+ if root == "/" || root == "." {+ f.root = ""+ } else {+ f.root = root+ }f.features = (&fs.Features{DuplicateFiles: true,CanHaveEmptyDirectories: true,