"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
jottacloud: remove DirMove workaround as it's not required anymore - also fixes #4655
buengese3edc9ff0b06d
diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.goindex 2f80b336c..7358d3174 100644--- a/backend/jottacloud/jottacloud.go+++ b/backend/jottacloud/jottacloud.go@@ -1087,8 +1087,7 @@ func (f *Fs) copyOrMove(ctx context.Context, method, src, dest string) (info *apvar resp *http.Responseerr = f.pacer.Call(func() (bool, error) {resp, err = f.srv.CallXML(ctx, &opts, nil, &info)- retry, _ := shouldRetry(resp, err)- return (retry && resp.StatusCode != 500), err+ return shouldRetry(resp, err)})if err != nil {return nil, err@@ -1192,18 +1191,6 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string_, err = f.copyOrMove(ctx, "mvDir", path.Join(f.endpointURL, f.opt.Enc.FromStandardPath(srcPath))+"/", dstRemote)- // surprise! jottacloud fucked up dirmove - the api spits out an error but- // dir gets moved regardless- if apiErr, ok := err.(*api.Error); ok {- if apiErr.StatusCode == 500 {- _, err := f.NewObject(ctx, dstRemote)- if err == fs.ErrorNotAFile {- log.Printf("FIXME: ignoring DirMove error - move succeeded anyway\n")- return nil- }- return err- }- }if err != nil {return errors.Wrap(err, "couldn't move directory")}