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.85k stars 128 forks source link

Error with -D and non-executable directories #631

Open ilario opened 9 months ago

ilario commented 9 months ago

I was trying the duplicate directories detection, I think is a very useful (and unique) feature!

I saw an error in a quite exotic case where there is some content in a non-executable directory:

$ mkdir test
$ cd test 
$ mkdir test2
$ touch test2/test3
$ chmod a-x test2
$ rmlint -D
WARNING: cannot stat file /home/ilario/temp/test/test2/test3 (skipping)
ERROR: lib/treemerge.c:230: stat(2) failed: Permission denied
==> 0 file(s) after investigation, nothing to search through.