peteraritchie / LongPath

drop-in library to support long paths in .NET
GNU Lesser General Public License v3.0
112 stars 43 forks source link

Regression on 2.0.47.0 for DirectoryInfo #82

Closed azchohfi closed 4 years ago

azchohfi commented 4 years ago

This commit changed a behavior on DirectoryInfo.Exist: https://github.com/peteraritchie/LongPath/commit/756979131828c796ca77688fcf5390d8a53ce43f

On 2.0.45.0, if you try to:

var di = new DirectoryInfo(longPathFilename);
Assert.IsFalse(di.Exists);

On 2.0.47.0, it throws an exception. This is only if the file exists. Unfortunately, this is not in the DirectoryInfo test cases.

azchohfi commented 4 years ago

I'm having a hard time on a possible solution for this... I can't break the NormalizedPathWithSearchPatternIncludesWildcardForFolders test... What should the right approach be @peteraritchie ?

peteraritchie commented 4 years ago

This is fixed in 2.0.51