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

Rank origin based on alphabetical sort on the path #471

Closed
slmeyer opened this issue Feb 17, 2021 · 9 comments
Closed

Rank origin based on alphabetical sort on the path #471

slmeyer opened this issue Feb 17, 2021 · 9 comments
Assignees

Comments

@slmeyer
Copy link

slmeyer commented Feb 17, 2021

I have lots of directories which are named with dates in ISO format, so the lowest alphabetically is also the oldest.
The archive have been copied around in different ways, so mtime doesn't work anymore.
It looks like the alphabetical sort only looks at the filename.
A ranking based on alphabetical sort of path would solve my problem (file basenames are identical)

@SeeSpotRun
Copy link
Collaborator

SeeSpotRun commented Mar 14, 2021

Ok, can add --sort-by=f option to sort by full path name.

Edit: should have been --rank-by=f

@SeeSpotRun SeeSpotRun self-assigned this Mar 14, 2021
@slmeyer
Copy link
Author

slmeyer commented Mar 14, 2021

Perfect, thanks

@SeeSpotRun
Copy link
Collaborator

@slmeyer are you able to compile from https://github.com/SeeSpotRun/rmlint/tree/sort-on-path and check this does what you want?

@slmeyer
Copy link
Author

slmeyer commented Mar 16, 2021 via email

@SeeSpotRun
Copy link
Collaborator

I think you're missing the optional dependency libblkid which I think on arch is in https://archlinux.org/packages/core/x86_64/util-linux/.

See https://rmlint.readthedocs.io/en/latest/install.html

@slmeyer
Copy link
Author

slmeyer commented Mar 17, 2021 via email

@SeeSpotRun
Copy link
Collaborator

I'm clutching at straws but maybe try:

$ scons --clean
$ scons --no-cache

Also check if /usr/include/sys/sysmacros.h exists.

@SeeSpotRun
Copy link
Collaborator

Oh wait, I see now. You were compiling the old master branch in my repo which is wayyyyy out of date. Try this:

$ cd <dir where you cloned my repo to>
$ git checkout sort-on-path
$ scons DEBUG=1 SYMBOLS=1
$ ./rmlint --rank-by=f [other options...] <paths to search...>

@SeeSpotRun
Copy link
Collaborator

Changes merged into develop branch; closing issue. Please re-open if it needs further tweaking.

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