in src/main/java/org/apache/sling/fsprovider/internal/FileStatCache.java [145:159]
private FileStat getClosestCachedAncestorState(String path) {
String ancestorPath = path;
FileStat fileStat = null;
do {
String nextAncestorPath = StringUtils.substringBeforeLast(ancestorPath, "/");
if (StringUtils.equals(ancestorPath, nextAncestorPath)) {
break;
}
ancestorPath = nextAncestorPath;
if (ancestorPath != null) {
fileStat = fileStates.get(ancestorPath);
}
} while (ancestorPath != null && fileStat == null);
return fileStat;
}