exists and notExists

Elliotte Harold elharo at metalab.unc.edu
Mon May 26 06:05:53 PDT 2008

Why do are there both exists() and notExists() methods in 
java.nio.file.Path? Is there some subtle issue such that notExists() is 
not equivalent to !exists()?

Otherwise, this feels like unnecessary duplication to me. I'd rather 
have just the single exists() method.

Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!

More information about the nio-discuss mailing list