diff --git a/src/duplicacy_oneclient.go b/src/duplicacy_oneclient.go index 0f25bb9..ab248b6 100644 --- a/src/duplicacy_oneclient.go +++ b/src/duplicacy_oneclient.go @@ -456,7 +456,7 @@ func (client *OneDriveClient) MoveFile(path string, parent string) error { url := client.APIURL + "/root:/" + path parentReference := make(map[string]string) - parentReference["path"] = "/root:/" + parent + parentReference["path"] = "/drive/root:/" + parent parameters := make(map[string]interface{}) parameters["parentReference"] = parentReference diff --git a/src/duplicacy_onestorage.go b/src/duplicacy_onestorage.go index fb0fc80..e5c294b 100644 --- a/src/duplicacy_onestorage.go +++ b/src/duplicacy_onestorage.go @@ -204,7 +204,7 @@ func (storage *OneDriveStorage) GetFileInfo(threadIndex int, filePath string) (e // DownloadFile reads the file at 'filePath' into the chunk. func (storage *OneDriveStorage) DownloadFile(threadIndex int, filePath string, chunk *Chunk) (err error) { - readCloser, _, err := storage.client.DownloadFile(storage.storageDir + "/" + filePath) + readCloser, _, err := storage.client.DownloadFile(storage.storageDir + "/" + storage.convertFilePath(filePath)) if err != nil { return err }