Github user uschindler commented on the pull request:
https://github.com/apache/lucenenet/pull/43#issuecomment-68871992
I noticed something:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365258(v=vs.85).aspx
It says, you can only open a direcory with FILE_FLAG_BACKUP_SEMANTICS...
Maybe this is why its causing "AccessDenied".
But on the other hand, the list of functions to call do not contain
FlushFileBuffers! Wo it might be useless.
Unfortunately, we cannot do this from Java NIO.2, but you may try this from
.NET:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---