Some minor Fixes
This commit is contained in:
parent
4f8840da68
commit
4d56796244
5 changed files with 23 additions and 29 deletions
|
@ -30,6 +30,8 @@ public class PathUtil {
|
|||
*/
|
||||
public static boolean isChildOf(Path parent, Path child) {
|
||||
if (child == null || parent == null) return false;
|
||||
parent = parent.toAbsolutePath().normalize();
|
||||
child = child.toAbsolutePath().normalize();
|
||||
|
||||
final int pCount = parent.getNameCount();
|
||||
final int cCount = child.getNameCount();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue