Github user uschindler commented on the pull request:
https://github.com/apache/lucenenet/pull/43#issuecomment-68865815
In Java, the .NET UnauthorizedAccessException extends IOException in Java
(see
http://docs.oracle.com/javase/8/docs/api/java/nio/file/AccessDeniedException.html)
so it works in Windows. Windows is the only platform where fsync on
directories does not work, but we still try We know for sure that it works in
MacOSX and Linux, so we assert on that, but we don't check it in production,
because later/earlier versions of those operating systems may not implement it.
So the whole thing is "the best we can do".
---
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.
---