in src/main/java/org/apache/sling/commons/fsclassloader/impl/FSClassLoaderWebConsole.java [239:250]
private boolean isValid(File file) throws IOException {
if (file.isFile()) {
File parent = file.getCanonicalFile().getAbsoluteFile().getParentFile();
while (parent != null) {
if (parent.getCanonicalPath().equals(root.getCanonicalPath())) {
return true;
}
parent = parent.getParentFile();
}
}
return false;
}