Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Only watch directories, not files #1859

Merged
merged 5 commits into from
May 1, 2022

Conversation

ranweiler
Copy link
Member

If a DirectoryMonitor is pointed at a file (and not a directory), fail on invocation of start().

Validated with a unit test and manual testing using the dir-monitor example.

Closes #1857.

@ranweiler ranweiler requested review from chkeita and tevoinea April 27, 2022 23:11
@microsoft microsoft deleted a comment May 1, 2022
@ranweiler ranweiler merged commit ebe5352 into microsoft:main May 1, 2022
@ranweiler ranweiler deleted the only-monitor-dirs branch May 1, 2022 21:24
@ghost ghost locked as resolved and limited conversation to collaborators Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DirectoryMonitor can be configured to watch a file
4 participants