lychee
lychee copied to clipboard
Hidden files are always included by glob
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.
Maybe it should behave exactly like ls or tree behave? If they list the file, we should check them.