4d8ef7bca7
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> |
||
---|---|---|
.. | ||
check.go | ||
check_test.go | ||
dedupe.go | ||
dedupe_test.go | ||
listdirsorted_test.go | ||
lsjson.go | ||
multithread.go | ||
multithread_test.go | ||
operations.go | ||
operations_internal_test.go | ||
operations_test.go | ||
rc.go | ||
rc_test.go | ||
reopen.go | ||
reopen_test.go |