-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix SubFileSystem watcher (sometimes) silently discarding events #92
Conversation
Watcher events get silently discarded if all conditions are met: * SubFileSystem was created with incorrect case * Changed file path includes a ~ * Any segment of changed file path is short enough to possibly be a SFN
Fixes TestSubFileSystem.TestWatcherCaseSensitive
A bit friendlier for CI runners
That's great, thanks for spotting this and making a PR to fix it, appreciated! |
@xoofx this is a breaking change, should the package get a major version bump? var fs = new PhysicalFileSystem();
fs.ConvertPathFromInternal(@"/test") In 0.18.0 this results in to |
It is using semver 2.0, so 0.x.y is considered as unstable, so the API has never been stabilized, so technically, any 0.x.y can be a major version bump 🙂 That being said, if you can find a fix to workaround this, PR welcome. @Metapyziks, would adding a check for the specific case of |
Sorry for the delay, I'll have a look now. |
Also explain why we're not just always calling Path.GetFullPath xoofx#92
Fixes #91 by only calling Path.GetFullPath for non-rooted paths on Windows in PhysicalFileSystem.ConvertPathFromInternalImpl.
Paths from filesystem events are already rooted, so this skips the weird behaviour for paths containing a
~
.