oko wrote: 2024-01-13, 23:09 UTC
1/ The syncdir tool is for synchronizing. Its purpose is not to find files or duplicates, but to compare and reconcile two sides. The 1:1 principle is exactly what is to be followed.
At least its primary purpose is not about searching. But - as I see it - IF binary duplicates exist among the files to be reconciled and whether or not to keep all of them in the end-/final-version or if there are wrongly-moved and/or misspelled/wrongly-renamed copies among them that rather
ought to be removed during reconciliation is ABSOLUTELY ESSENTIAL.
oko wrote: 2024-01-13, 23:09 UTC
2/ What has a pair is either equal or unequal. What does not have a pair (from that perspective it is unique, alone, single) cannot be compared whether it is equal or unequal, but it is also an important state for synchronization.
Syncdir has its criteria (name, date attributes, content) for what it considers unique and what not unique.
Sorry, but I totally stand with my differentiation of "truly-unique" vs. "pseudo-unique" as "true uniqueness" in the end (and from a logical rather than only formalistic point-of-view) can only be a question of binary content. Let me give you an example: if 2 twin-sisters decided to order exactly the same car each and on arrival both vehicles would of course receive individual license-plates (=names) - can we now say that these are both "truly-unique" (singular) vehicles? As I see it - of course not. A license-plate at best makes them "singular" in a very formalistic sense while in reality they remain non-singular, identical copies of the very same model.
And yet the real problem in our file-structure-case is that there may well exist even completely identical, equal pairs which are not even recognized as such by the current "SyncDirs"-tool - because they may happen to be located someplace else and thus are
erroneously deemed "unique" (or in other terms erroneously called "singular") by the current "SyncDirs"-tool
oko wrote: 2024-01-13, 23:09 UTC
3/ Perhaps a "ignore filenames" option could be added to syncdir (with option to turn this option on or off), but it still has to be kept 1:1 concept, so if syncdir can not assign/pair identical files by name, it would compare files by size/content and mark files identical in content but not identical in name as none-identical, but with a different (new) marker, not a red crossed out equals sign. And it would also add a new filter button to hide/show them from view. The files would be next to each other (on both side in the same row), and marking them for copying from right to left or left to right for those files would mean copying only the name, not the whole file. If there were multiple identical files in a folder, only one would be paired with the other by syncdir and the others would be handled as now (as unique).
And this is exactly where a binary-duplicates-search (only necessary between the prima-vista "unique" columns on both sides) inevitably comes in through the back-door! I have no intention to REPLACE the already existing binary-duplicates-search from <Alt>F7 - for general purposes other than reconciliation - by moving that capability entirely to "SyncDirs" - I just would argue in favor of introducing that same algorithm (as it already exists) to now being performed only between the two columns prima-vista deemed "unique" by current "SyncDirs".
To spare you reading through this whole thread I'd like to point you to a concise summary of my whole concept which I just happened to re-publish yesterday as a comment to a new but similar, most recent thread:
viewtopic.php?p=447920#p447920
What I would have completely to disagree with is your notion of handling multiple identical files by pairing only 2 of them and treating the others as "unique" - which by now we would KNOW EXACTLY THAT THEY ARE NOT!
My approach would rather be to have a right-click-context-menu-option when clicking on any of those names within the (separately selectable) group of binary-duplicates (left/right) that would open a new (pop-up?-)-page ONLY showing ALL the binary duplicates OF ONE PARTICULAR FILE, yet again within the proven view-mode-concept of "SyncDirs", allowing for individual inspection and individual selection for further steps thereafter.
oko wrote: 2024-01-13, 23:09 UTC
4/ I have a feeling that the reason why some want to get a find-duplicate function into syncdir is the userfriendly appearance/layout of syncdir. Therefore, it should be considered whether it would be better to improve the appearance of the find-duplicates results window, or to mimic the appearance of syncdir. Apparently the look/layout of syncdir is more natural to many users than the look of find-duplicates. So syncdir and find-duplicates could remain separate functions.
Yes, it is certainly true that the "SyncDirs"-way of
representation of results in a structured, tree-/path-oriented manner is next to optimal, especially as it
facilitates further individual inspection and selection of the results, including looking at images or listening to sounds before making a final decision what to do with those files next or even offering the possibility to delete some of those (unwanted, redundant?) copies right in place, thereby offering a level of versatility and flexibility far above and beyond the possibilities of the <Alt>F7-find-duplicates results window. But having that said doesn't mean the <Alt>F7-approach would have to go. It sure has its merits as long as the number of pairs/triples of duplicates found doesn't go into the thousands and as long as the desired/sought-after duplicates can be selected by a rather formalistic approach (using Num+ folder-selection) and do not need any individual inspection which that latter representation is unable to offer.
oko wrote: 2024-01-13, 23:09 UTC
5/ Find-duplicates can find duplicates in any location (and combination of locations) and select files according to various criteria to do with them what is desired. But if none of these options in find-duplicates suit someone, because their criteria are not fixed or cannot be automated and thus they need to manually see and asses the results of the search ( e.g. deside which to select) , no software solution will help...
No objection here, except that IF individual inspection is (at least in parts) needed before making a final decision then the constraints-exposing representation of results in the "SyncDirs"-mode, albeit unable to provide automated decisions, can be a huge step in speeding up the decision-making-process by the remarkable versatility it has to offer.