peteraritchie / LongPath

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

Fixes issue #12: Directory.Exist return strange result #13

Closed Fabsky closed 9 years ago

Fabsky commented 9 years ago

In some strange situation the errorCode is still 0, even if the path doesn't exists. In that case the attribute is -1, so we can check that the attribute is valid