FileUtill.isAncestor fixed on MacOS

This commit is contained in:
Anton Makeev
2012-01-25 11:08:30 +01:00
parent 67db59bf46
commit cceeb5a302
@@ -131,7 +131,8 @@ public class FileUtil {
if (parent == null) {
return false;
}
if (parent.equals(ancestor)) {
// Do not user file.equals as it incorrectly works on MacOS
if (pathsEqual(parent.getPath(), ancestor.getPath())) {
return true;
}
parent = getParentFile(parent);