On Sat, May 16, 2015 at 7:30 PM, Francis Galiegue <fgalie...@gmail.com> wrote:
[...]
>
> As to a new API, well, why not StandardOpenOption.DIRECTORY?
> O_DIRECTORY has existed for open(2) since POSIX.1-2008 (says open(2)),
> and it is even specified that if the path is not a directory the
> failure is ENOTDIR. Excellent, we have NotDirectoryException already.
>

In fact, even better: OpenOption is an interface after all, so this is
only a matter of providing a default FileSystemProvider which
acknowledges a custom OpenOption of yours; as a bonus this will work
even with Java 8, before and after the change.

Regards,
-- 
Francis Galiegue, fgalie...@gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/fge/grappa

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to