Nick Craig-Wood
62f0bbb598
dedupe: Make it obey the --size-only flag for duplicate detection #4321
2020-07-28 11:40:37 +01:00
Nick Craig-Wood
81002747c5
dedupe: implement keep smallest too
...
This is to help deduping google docs and their exported versions if
they accidentally get uploaded to the source again.
See: https://forum.rclone.org/t/my-stupidity-or-a-bug/13861
2020-01-17 13:08:37 +00:00
Nick Craig-Wood
11f501bd44
operations: move interface assertion to tests to remove pflag dependency #3792
2020-01-09 13:25:37 +00:00
Nick Craig-Wood
57d5de6fba
build: fix up package paths after repo move
...
git grep -l github.com/ncw/rclone | xargs -d'\n' perl -i~ -lpe 's|github.com/ncw/rclone|github.com/rclone/rclone|g'
goimports -w `find . -name \*.go`
2019-07-28 18:47:38 +01:00
Aleksandar Jankovic
f78cd1e043
Add context propagation to rclone
...
- Change rclone/fs interfaces to accept context.Context
- Update interface implementations to use context.Context
- Change top level usage to propagate context to lover level functions
Context propagation is needed for stopping transfers and passing other
request-scoped values.
2019-06-19 11:59:46 +01:00
Nick Craig-Wood
4376019062
dedupe: Use walk.ListR for listing commands.
...
This dramatically increases the speed (7x in my tests) of the de-dupe
as google drive supports ListR directly and dedupe did not work with
`--fast-list`.
Fixes #2902
2019-03-16 17:41:12 +00:00
ssaqua
3d81b75f44
dedupe: check for existing filename before renaming a dupe file
2018-11-02 16:51:52 +00:00
Richard Yang
a81ec00a8c
dedupe: Add dedupe largest functionality - fixes #2269
2018-04-26 16:21:07 +01:00
Nick Craig-Wood
d97fe3b824
fs/operations: make dedupe work with mega
...
* factor into its own files
* remove assumptions about having a given hash type
* make tests work if the remote has no hash
2018-04-13 13:23:55 +01:00