Closed Metapyziks closed 4 months ago
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 /mnt/c/test
on windows but now throws an exception Expecting a drive for the path "\test"
@xoofx this is a breaking change, should the package get a major version bump?
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 ~
would be enough? (I'm not sure what ~
is causing trouble with)
Sorry for the delay, I'll have a look now.
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
~
.