Skip to content

Commit

Permalink
less strict File equality
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Apr 17, 2024
1 parent 63ea355 commit e284d7c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ public long getSize() throws IOException {
@Override
public boolean equals(Object obj) {
if (obj instanceof EnsoFile otherFile) {
return truffleFile.getPath().equals(otherFile.truffleFile.getPath());
if (truffleFile.getPath().equals(otherFile.truffleFile.getPath())) {
return true;
} else {
return truffleFile.getAbsoluteFile().normalize().getPath().equals(otherFile.truffleFile.getAbsoluteFile().normalize().getPath());
}
} else {
return false;
}
Expand Down

0 comments on commit e284d7c

Please sign in to comment.