Skip to content

vfs: pass listener to fs.watchFile in RealFSProvider#64542

Open
heyparth1 wants to merge 1 commit into
nodejs:mainfrom
heyparth1:brutus/issue-64536
Open

vfs: pass listener to fs.watchFile in RealFSProvider#64542
heyparth1 wants to merge 1 commit into
nodejs:mainfrom
heyparth1:brutus/issue-64536

Conversation

@heyparth1

Copy link
Copy Markdown

Fixes a bug where watchFile in RealFSProvider ignored the provided listener, causing the callback to never fire when the underlying file changed. The listener is now correctly forwarded to fs.watchFile. Adds a test to verify the listener fires on file changes.

Closes #64536

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. vfs Issues and PRs related to the virtual filesystem subsystem. labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. vfs Issues and PRs related to the virtual filesystem subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

watchFile never fires when vfs uses a real dir

2 participants