Probably fine, but ENOENT or ENOTDIR are likely failures, failures we may wish to make more obvious to the Java code.

So we should make those more easily detectable than relying on checking the translated platform error string.