rclone/backend/drive
Saksham Khanna 4d8ef7bca7
cmd/dedupe: make largest directory primary to minimize data moved (#3648)
This change makes dedupe recursively count elements in same-named directories
and make the largest one primary. This allows to minimize the amount of data
moved (or at least the amount of API calls) when dedupe merges them.
It also adds a new fs.Object interface `ParentIDer` with function `ParentID` and
implements it for the drive and opendrive backends. This function returns
parent directory ID for objects on filesystems that allow same-named dirs.
We use it to correctly count sizes of same-named directories.

Fixes #2568

Co-authored-by: Ivan Andreev <ivandeex@gmail.com>
2021-03-11 20:40:29 +03:00
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive.go cmd/dedupe: make largest directory primary to minimize data moved (#3648) 2021-03-11 20:40:29 +03:00
drive_internal_test.go fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
upload.go Use http.NewRequestWithContext where possible after go1.13 minimum version 2021-02-03 17:41:27 +00:00