dedupe command to deduplicate a remote. Useful with google drive - fixes #41

This commit is contained in:
Nick Craig-Wood
2016-01-31 12:58:41 +00:00
parent 1373efaa39
commit 0f73129ab7
4 changed files with 132 additions and 0 deletions

View File

@@ -240,6 +240,19 @@ var Commands = []Command{
MinArgs: 2,
MaxArgs: 2,
},
{
Name: "dedupe",
ArgsHelp: "remote:path",
Help: `
Interactively find duplicate files and offer to delete all
but one or rename them to be different. Only useful with
Google Drive which can have duplicate file names.`,
Run: func(fdst, fsrc fs.Fs) error {
return fs.Deduplicate(fdst)
},
MinArgs: 1,
MaxArgs: 1,
},
{
Name: "config",
Help: `