-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.watch for symbolic links #3469
Comments
Symbolic files also have this problem. Here are the steps to reproduce it:
const fs = require("fs");
// const file = "testfile";
const file = "testlink";
fs.watch(file, (eventType, filename) => {
console.log(eventType, filename);
}); Error and traceback.
bun/src/bun.js/node/node_fs_watcher.zig Lines 799 to 806 in d356cd5
I think Line 805 should be changed to result.is_file = _stat.kind != .directory;
|
That was a big oopsie on my part, sorry about that. |
Thank you @cirospaciari ! |
What version of Bun is running?
0.6.11
What platform is your computer?
Darwin 20.6.0 arm64 arm
What steps can reproduce the bug?
fs.watch for symbolic links to directories does not emit changes. Works on Node.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
Thanks for the awesome project!
The text was updated successfully, but these errors were encountered: