"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
onedrive: fix root ID not normalised #2930
Cnlyea12d76c0354
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 6545680c2..b53f94815 100644--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -492,11 +492,11 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {// Get rootIDrootInfo, _, err := f.readMetaDataForPath("")- if err != nil || rootInfo.ID == "" {+ if err != nil || rootInfo.GetID() == "" {return nil, errors.Wrap(err, "failed to get root")}- f.dirCache = dircache.New(root, rootInfo.ID, f)+ f.dirCache = dircache.New(root, rootInfo.GetID(), f)// Find the current rooterr = f.dirCache.FindRoot(false)