mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
fs: fix duplicate files causing spurious copies
Before this fix duplicate files (on Google Drive) caused the next file to be spuriously copied. `rclone dedupe` worked around the problem.
This commit is contained in:
@ -101,11 +101,15 @@ func TestMatchListings(t *testing.T) {
|
||||
{
|
||||
what: "One duplicate",
|
||||
input: DirEntries{
|
||||
A, A,
|
||||
a, a,
|
||||
a, nil,
|
||||
b, b,
|
||||
},
|
||||
matches: []matchPair{
|
||||
{A, A},
|
||||
{a, a},
|
||||
{b, b},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -141,20 +145,6 @@ func TestMatchListings(t *testing.T) {
|
||||
},
|
||||
transforms: []matchTransformFn{strings.ToLower},
|
||||
},
|
||||
/*{
|
||||
what: "Out of order",
|
||||
input: DirEntries{
|
||||
c, nil,
|
||||
b, b,
|
||||
a, nil,
|
||||
},
|
||||
srcOnly: DirEntries{
|
||||
c,
|
||||
},
|
||||
dstOnly: DirEntries{
|
||||
b,
|
||||
},
|
||||
},*/
|
||||
} {
|
||||
var srcList, dstList DirEntries
|
||||
for i := 0; i < len(test.input); i += 2 {
|
||||
|
Reference in New Issue
Block a user