mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FileUtill.isAncestor fixed on MacOS
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user