FileUtils { public static boolean isChild(File parent, File child) { return isChild(split(parent.getAbsoluteFile()), split(child.getAbsoluteFile())); }  static void mkdirs(final File f); static void deleteDirectory(final File directory); static String getDelta(File parent, File child); static String getRelativePath(String targetPath, String basePath, String pathSeparator); static boolean isSymbolicLink(File file); static void createSymbolicLink(final File source, final File target); static boolean isChild(File parent, File child); static String ensureLeadingSlash(final String path); static String getAppendix(final File f);  }
@Test public void testIsChild() throws Exception { assertTrue(FileUtils.isChild(new File("/abc/def"), new File("/abc/def/ghi"))); }