-
Notifications
You must be signed in to change notification settings - Fork 116
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
Mirror sample bug about Info.IsDirectory #274
Comments
Yes, you do need to set this field if the directory exist. Could you explain a little more where you added this code ? |
I've read more code in C# mirror, and I thought its should not be fixed in this way, but the key code in C mirror is this (line 273) it seems that user software tring to open a directory as a file, so then here it tells that this FILE IS A DIRECTORY, then everything's fine. But there is no STATUS_FILE_IS_A_DIRECTORY in Dokan.NET
then I no longer able to open the any directory in my mounted driver, it says "denied" |
I was adding that code at the very begining of the CreateFile method, it fixed the problem that my user software met when using mirror sample for Dokan.NET but I am not able to use this fix code in my own code, it is a little complex the fix code |
found a workaround, not sure if any side effect so far
|
To properly handle this issue we need to support Also add
|
Thanks @blackeyed7, I was experiencing the same issue when scanning my virtual drive with log4jscanner. If I ran: it would instantly return:
So to scanner seems to enumerate the drive in an unusual way. Also, the scan would run fine on a virtual drive provided through mirror.exe. Those two facts suggested an issue with Thanks @Liryna, I added that block of code to |
in CreateFile method
info.IsDirectory not working (not sure if its 100% fail)
I see the C mirror code has a check there, so I added check code on mine too
The text was updated successfully, but these errors were encountered: