lychee icon indicating copy to clipboard operation
lychee copied to clipboard

Hidden files are always included by glob

Open katrinafyi opened this issue 1 month ago • 1 comments

I was thinking about this after https://github.com/lycheeverse/lychee/issues/1935, but idk if it's a bug or just imprecise documentation.

These commands

mkdir -p /tmp/hidden/asd/
echo 'https://a.com/' > /tmp/hidden/asd/.a.md
cargo run -q -- --dump  '/tmp/hidden/**/*' 

will print

https://a.com/

The view could be taken that the glob specifies that the file should be included. Alternatively, a view could be taken that shell globs would exclude hidden files by default and we should do the same.

Maybe this is not a big issue.

katrinafyi avatar Nov 26 '25 00:11 katrinafyi

Maybe it should behave exactly like ls or tree behave? If they list the file, we should check them.

mre avatar Nov 26 '25 12:11 mre