Skip to content

Filter non-dir entries under projects/ - #36

Merged
fuzzyporpoise merged 2 commits into
mainfrom
project-dir
Oct 9, 2026
Merged

fuzzyporpoise merged 2 commits into
mainfrom
project-dir

Conversation

@fuzzyporpoise

Copy link
Copy Markdown
Owner

Summary

Adds filtering so lnk doctor only treats directories under projects/ as stored projects. Plain files that land there, most commonly macOS .DS_Store, were being reported as projects missing their .lnkproject marker.

What's new

  • Non-directory entries ignored - scanProjects skips plain files at the top of projects/ instead of listing them as unmarked storage.

Behavior changes / guardrails

  • Only regular files directly under projects/ are affected; directories without a marker are still reported as unmarked storage.
  • The orphaned-storage check was already directory-only, so no change there.

Testing

  • TestDoctor_FlagsUnmarkedAndEmptyProjects now drops a .DS_Store file into projects/ and asserts it is not flagged.
  • make check runs fmt, vet, lint, and tests; all green.

@fuzzyporpoise fuzzyporpoise self-assigned this Oct 9, 2026
@fuzzyporpoise
fuzzyporpoise merged commit 2a4864f into main Oct 9, 2026
4 checks passed
@fuzzyporpoise
fuzzyporpoise deleted the project-dir branch October 9, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant