// (they are always zero), so we use canonical paths instead. (JRUBY-5726)
// If we can't load a native POSIX, use this same logic. (JRUBY-6982)
if (file1.exists() && file2.exists()) {
try {
String canon1 = new File(file1.absolutePath()).getCanonicalPath();
String canon2 = new File(file2.absolutePath()).getCanonicalPath();
return runtime.newBoolean(canon1.equals(canon2));
} catch (IOException canonicalizationError) {
return runtime.getFalse();
}
} else {