I think the javadoc is pretty clear why notExists
is not a logical complement of the exists
method. Logical complement B = !A
means that if A
is true, B
is false and vice versa. This is not the case here as both methods may return false at the same time.
"Where it is not possible to determine if a file exists or not then both methods return false."