Skip to content

Commit

Permalink
Mark duplicate shares.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylangisc committed Dec 14, 2024
1 parent 091720a commit feb221b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
* │ ├── deepbox 2
* │ │ └── mybox 3
* │ └── boxes shared with me
* │ ├── deepbox 77 (box 65)
* │ ├── deepbox 77 (box 67)
* │ └── deepbox 89 (box 78)
* │ ├── company 77 (box 65)
* │ ├── company 77 (box 67)
* │ └── company 89 (box 78)
* └── company 29
* └── ....
*/
Expand Down Expand Up @@ -355,6 +355,8 @@ public AttributedList<Path> list(final Path directory, final ListProgressListene
new PathAttributes().withFileId(box.getBoxNodeId()).withCustom("deepboxName", box.getDeepBoxName()))
);
}
// Mark duplicates
list.toStream().forEach(f -> f.attributes().setDuplicate(list.findAll(new SimplePathPredicate(f)).size() != 1));
listener.chunk(directory, list);
return list;
}
Expand Down

0 comments on commit feb221b

Please sign in to comment.