find-command icon indicating copy to clipboard operation
find-command copied to clipboard

ignored_paths false positives

Open athompson-a2 opened this issue 1 year ago • 2 comments

I noticed today that a customer's WP installation wasn't getting found. Verbose output found the following:

[0:00:39] Matched ignored path. Skipping recursion into '/home/username/wpblogs/'

This seems to be matching "logs/" in ignored_path. This might have broken with https://github.com/wp-cli/find-command/pull/67 . Previously the line would have been /logs/, but something in the way it's looking now it's not using the preceding directory separator when matching. "blogs" is a pretty common directory for WP sites. I could also see "js/" resulting in false positives with the current way this is matching.

athompson-a2 avatar Nov 04 '24 17:11 athompson-a2

Ran into the same issue. We have -data/ in the top level directory that we scan, so anything there was being ignored.

Workarounds include reverting to version 2.0.0

wp package install wp-cli/find-command:2.0.0

Alternatively, use the --skip-ignored-paths flag, but that may come at the cost of performance

jormaster3k avatar May 12 '25 14:05 jormaster3k

#67 was aiming to address a Windows compat issue, so to confirm, is this happening on Windows or Linux?

swissspidy avatar May 12 '25 17:05 swissspidy