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

Switch to misuse-resistant smart constructor #1865

Merged
merged 1 commit into from
May 2, 2022

Conversation

ranweiler
Copy link
Member

Use a simpler and less error-prone API for DirectoryMonitor.

  • Make new() ctor async, set watch on construction
  • Remove start(), validate that target path is a directory in new()

Closes #1864.

@ranweiler ranweiler merged commit 30660c9 into microsoft:main May 2, 2022
@ranweiler ranweiler deleted the smart-ctor branch May 2, 2022 03:58
@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.

Check for invalid paths in DirectoryMonitor constructor
2 participants