Skip to content

Commit ff08ab2

Browse files
authored
Merge branch 'gilbertchen:master' into master
2 parents 2f86271 + 2def016 commit ff08ab2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

duplicacy/duplicacy_main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,7 @@ func main() {
22632263
app.Name = "duplicacy"
22642264
app.HelpName = "duplicacy"
22652265
app.Usage = "A new generation cloud backup tool based on lock-free deduplication"
2266-
app.Version = "3.2.4" + " (" + GitCommit + ")"
2266+
app.Version = "3.2.5" + " (" + GitCommit + ")"
22672267

22682268
// Exit with code 2 if an invalid command is provided
22692269
app.CommandNotFound = func(context *cli.Context, command string) {

src/duplicacy_oneclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ func (client *OneDriveClient) MoveFile(path string, parent string) error {
456456
url := client.APIURL + "/root:/" + path
457457

458458
parentReference := make(map[string]string)
459-
parentReference["path"] = "/root:/" + parent
459+
parentReference["path"] = "/drive/root:/" + parent
460460

461461
parameters := make(map[string]interface{})
462462
parameters["parentReference"] = parentReference

src/duplicacy_onestorage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (storage *OneDriveStorage) GetFileInfo(threadIndex int, filePath string) (e
204204

205205
// DownloadFile reads the file at 'filePath' into the chunk.
206206
func (storage *OneDriveStorage) DownloadFile(threadIndex int, filePath string, chunk *Chunk) (err error) {
207-
readCloser, _, err := storage.client.DownloadFile(storage.storageDir + "/" + filePath)
207+
readCloser, _, err := storage.client.DownloadFile(storage.storageDir + "/" + storage.convertFilePath(filePath))
208208
if err != nil {
209209
return err
210210
}

0 commit comments

Comments
 (0)