Fix IsHiddenPath treating current directory as hidden (closes #14) #19

Open
clawbot wants to merge 1 commits from fix/issue-14 into next

1 Commits

Author SHA1 Message Date
clawbot
e16c943296 fix: IsHiddenPath returns false for "." and "/" (current dir/root are not hidden)
path.Clean(".") returns "." which starts with a dot, causing IsHiddenPath
to incorrectly treat the current directory as hidden. Add explicit checks
for "." and "/" before the dot-prefix check.

Fixed in both mfer/scanner.go and internal/scanner/scanner.go.
2026-02-08 12:03:54 -08:00