Skip to content

fix: Local dir discovery - #55

Merged
mrsimpson merged 1 commit into
codemcp:mainfrom
ffflorian:fix/local-dir
Jul 27, 2026
Merged

fix: Local dir discovery#55
mrsimpson merged 1 commit into
codemcp:mainfrom
ffflorian:fix/local-dir

Conversation

@ffflorian

Copy link
Copy Markdown
Collaborator

The countFiles function used readdir with withFileTypes and then checked entry.isDirectory() / entry.isFile() to traverse the docset directory. Problem is, for symlinks both of those return false – you'd need entry.isSymbolicLink() to detect them. Since local folder docsets are entirely made up of symlinks, the traversal never entered any directory and never counted any file.

Fixed by switching to fs.stat() which follows symlinks and correctly reports whether the target is a file or directory.

@mrsimpson
mrsimpson merged commit e1623e2 into codemcp:main Jul 27, 2026
1 check passed
@ffflorian
ffflorian deleted the fix/local-dir branch August 20, 2026 11:08
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.

2 participants