If I have an existing folder path that ends with a slash (e.g. "C:\test\folder\") then the static method Directory.Exists(@"C:\test\folder\") will find the folder and return true.
However, the instance property new Directory(@"C:\test\folder\").Exists always seems to return false. If I remove the final slash from the end then it finds the folder and returns true.
This is easy to work around (always use the Static method), but I would have expected both the instance property and static method to behave the same (as they do in System.IO.Directory).
If I have an existing folder path that ends with a slash (e.g. "C:\test\folder\") then the static method Directory.Exists(@"C:\test\folder\") will find the folder and return true.
However, the instance property new Directory(@"C:\test\folder\").Exists always seems to return false. If I remove the final slash from the end then it finds the folder and returns true.
This is easy to work around (always use the Static method), but I would have expected both the instance property and static method to behave the same (as they do in System.IO.Directory).