Open TanukiTom opened 2 years ago
find /home/me/rmlint-test -name "do-not-scan" -prune -o -print0
includes the root directory, which rmlint will scan recursively by default - try find /home/me/rmlint-test -mindepth 1 -name "do-not-scan" -prune -o -print0
to exclude it, or find /home/me/rmlint-test -name "do-not-scan" -prune -o -type f -print0
to only list files (doesn't include symlinks either).
I'm trying to exclude certain folders from
rmlint
by piping the results fromfind
. Here are my files:I want
rmlint
to completely ignore all the contents in thedo-not-scan
folder:find -name "do-not-scan" -prune -o print
Result:
/home/me/rmlint-test/scan/test-file.txt
However, this doesn't work when piping the results of find into
rmlint
:find /home/me/rmlint-test -name "do-not-scan" -prune -o -print0 | rmlint -0 -S l
Result:
find /home/me/rmlint-test -name "do-not-scan" -prune -o -print | rmlint - -S l
gives the same result. I've tried runningfind
with multiple different-name
,-path
and-prune
combinations. I keep having the same problem.rmlint
shouldn't find any duplicates because it shouldn't know about the contents of thedo-not-scan
folder.find
's output excludes thedo-not-scan folder
, so I don't think the problem is withfind
. However, I don't know howrmlint
could be running on a file, iffind
isn't passing that file path tormlint
.