-
Notifications
You must be signed in to change notification settings - Fork 43
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
Directory.Exist return strange result #12
Comments
Here is a screenshot when debugging the source code (Common.cs line 70) This is the same path, but executed from nunit test: The problem comes from Marshal.GetLastWin32Error(); which return 0 (Common.cs line 114) |
See #13 |
Fixes issue #12: Directory.Exist return strange result
Still trying to repo, if you could create a unit test gist (or just paste code in the issue) that repros it, that would help me get to it sooner :) |
I assume the PR from #13 fixes this |
I'm trying your library.
The application is a bit special: it's a namespace extension.
At some place, I've this method:
This method is called maybe 10x in parallel by windows.
The Directory.Exists return true ... but the folder doesn't exists. It's never created.
In VS if I type these commands::
Pri.LongPath.Directory.Exists(local)
true
System.IO.Directory.Exists(local)
false
If I try in a "safe" environment with one simple execution, the method correctly return false
Any idea ?
Thank you
The text was updated successfully, but these errors were encountered: