Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option --order in 1.51 #37

Closed
gerritgriebel opened this issue Nov 23, 2015 · 4 comments
Closed

Option --order in 1.51 #37

gerritgriebel opened this issue Nov 23, 2015 · 4 comments

Comments

@gerritgriebel
Copy link

My intent was to keep the first file in alphabetic order of any duplicates. So I installed fdupes using macports and got

$ /opt/local/bin/fdupes --version
fdupes 1.51

I found no option for sorting, neither in man page nor in --help output. So I checked back here and found an --order option in source code. So I downloaded sources, build and used "--order name" option successfully.

Two issues:

@adrianlopezroche
Copy link
Owner

Thanks.

On Mon, Nov 23, 2015, 8:25 AM gerritgriebel notifications@github.com
wrote:

My intent was to keep the first file in alphabetic order of any
duplicates. So I installed fdupes using macports and got

$ /opt/local/bin/fdupes --version
fdupes 1.51

I found no option for sorting, neither in man page nor in --help output.
So I checked back here and found an --order option in source code. So I
downloaded sources, build and used "--order name" option successfully.

Two issues:


Reply to this email directly or view it on GitHub
#37.

@adrianlopezroche
Copy link
Owner

Are you sure sorting doesn't work like it's supposed to? A quick glance at registerpair shows it sorts the whole dupe chain by inserting each new match at the proper spot along the linked list.

On Mon, Nov 23, 2015, 9:10 PM Jody Bruchon notifications@github.com wrote:

The sorting algorithm doesn't work right anyway; the sort is performed on
matched pairs when the pairs arrive, but it should be performed on full
chains of pairs once all duplicate finding work is finished. As it stands
now, if pairs (1,5) (1,2) (2,3) (3,4) arrive, the pairs themselves will be
ordered properly but the combined set (1,2,3,4,5) will have errors based on
when each pair hits the sorting algorithm and could become (1,5,2,3,4) in
the effective final ordering, even though each individual pair is
technically properly sorted.


Reply to this email directly or view it on GitHub
#37 (comment)
.

@adrianlopezroche
Copy link
Owner

  • Changed help text to read BY='name' instead of BY='filename'.
  • I'm unable to reproduce the sorting issue, so ignoring it for now.

@Joshfindit
Copy link

Same problem here:
brew install fdupes got fdupes 1.5.1, but it did not support --order:

fdupes: unrecognized option `--order=name'
Try `fdupes --help' for more information.

So, cloned the repo and did make successfully.

The more pressing issue is something not actually stated in this issue, but more alluded to: Order doesn't work.

No matter what flags I run: fdupes --order=name --reverse --delete ./ or fdupes --order=name --delete ./or fdupes -r --order='time' --reverse ./ or fdupes -r --order='time' --reverse ./ the order is always the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants