sahib / rmlint

Extremely fast tool to remove duplicates and other lint from your filesystem
http://rmlint.rtfd.org
GNU General Public License v3.0
1.91k stars 132 forks source link

rmlint (GUI) not scanning directories & rmlint (CLI) not allowing original tag search #534

Closed russmcg closed 2 years ago

russmcg commented 2 years ago

I have noticed two issues with rmlint

  1. the rmlint GUI does not notice files in the directory I chose. It only notices the rmlint.sh files that were created from running rmlint in the /home/username/Pictures directory.
  2. only allows me to run rmlint command. running rmlint --keep-all-tagged --must-match-tagged /home/username/Pictures/PicturesinDrive-005 // /home/username/Pictures does not work

currently running ubuntu 20.04.3 LTS gnome version 3.36.8

Not sure why it is only working when running just rmlint in the directory I am interested in, and the GUI isn't scanning either.

Hope someone can help.

russmcg commented 2 years ago

I also installed all the dependencies even the optional ones to make sure it wasn't something to do with that

russmcg commented 2 years ago

It started to work after I changed the file size, but there are still definitely a few bugs

tony-travis commented 2 years ago

I've just reported this as a BUG in the version packaged for Ubuntu 20.04 LTS https://bugs.launchpad.net/ubuntu/+source/rmlint/+bug/1951596

The problem is that the default 16 PB max file size is interpreted as a negative number.

This is the error running rmlint with the default 16 PB value:

ajt@pilot:~$ rmlint --no-with-color -T duplicates --see-symlinks --partial-hidden -c sh:handler=remove --hardlinked --crossdev --size 1-18446744073709551615 --max-depth 512 -o json -c json:oneline /home/ajt/Documents/Work/Minke ERROR: cannot parse --size: Max is smaller than min.

combs commented 2 years ago

I see the same with the Ubuntu package, it barfs as follows:

rmlint --no-with-color -T duplicates --see-symlinks --partial-hidden -c sh:handler=symlink --hardlinked --crossdev --size 1-18446744073709551615 --max-depth 512 -o json -c json:oneline /mnt/studio/Studio-Sync/Slow-Motion
ERROR: cannot parse --size: Max is smaller than min.

and updating the size max to a slightly smaller number makes it work. I tried 10 petabytes instead of 16 :-)

cebtenzzre commented 2 years ago

@russmcg The size issue is a duplicate of #386 - this fixed as of v2.10.0. Open a separate issue with more information about the CLI issue with --keep-all-tagged/--must-match-tagged if you are still able to reproduce it.