Skip to content

Conversation

@lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Nov 22, 2021

This commit adds support for "other" events in FSWatcher. Flags on
events are now exposed via the flag property on FsEvent.

There are no tests for this change, as the only known cause for this "other"
event being emitted, is watching an SMB share on macOS. Not something we can
really test for in CI.

Closes #12097

This commit adds support for "other" events in `FSWatcher`. Flags on
events are now exposed via the `flag` property  on `FsEvent`.
Copy link

@lucsoft lucsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice addition!

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any way we can test this addition?

@lucacasonato
Copy link
Member Author

Any way we can test this addition?

See the PR description :-)

@bartlomieju
Copy link
Member

LGTM then

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to write a test for?

I can't read either.

@lucacasonato
Copy link
Member Author

Hard to write a test for?

See PR description 😉

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM too, now that I actually read things.

@lucacasonato lucacasonato merged commit ae34f8f into denoland:main Nov 23, 2021
@lucacasonato lucacasonato deleted the fs_watcher_other_flag branch November 23, 2021 10:30
piscisaureus pushed a commit that referenced this pull request Nov 24, 2021
This commit adds support for "other" events in `FSWatcher`. Flags on
events are now exposed via the `flag` property  on `FsEvent`.
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.

Bug macOS: Watching on Samba Fileshare throws an not yet implemented

6 participants