Skip to content

Conversation

@xyhuang7215
Copy link
Contributor

addWatch calls dirAddSlashAtEnd to normalize directory paths,
but removeWatch was doing direct string comparison without normalization,
causing removal to fail when paths don't have trailing slashes.

This fix adds path normalization to all FileWatcher implementations to ensure consistent behavior.

ref: #205

addWatch calls dirAddSlashAtEnd to normalize directory paths,
but removeWatch was doing direct string comparison without normalization,
causing removal to fail when paths don't have trailing slashes.

This fix adds path normalization to all FileWatcher
implementations to ensure consistent behavior.
@SpartanJ
Copy link
Owner

SpartanJ commented Jan 5, 2026

Great, thanks!

@SpartanJ SpartanJ merged commit 87d486a into SpartanJ:master Jan 5, 2026
3 checks passed
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