in src/main/java/org/apache/sling/fsprovider/internal/FileStatCache.java [131:143]
private String relativePath(final String basePath, final String path) {
final String suffix = StringUtils.removeStart(path, basePath);
final String normalizedPath = StringUtils.replaceChars(suffix, '\\', '/');
// If path starts with a '.', it is likely the descriptor file that
// is a sibling of the providerFilePath, i.e. most likely a .json file.
// We need to fix that up, as it is not a child of the providerFilePath.
if (normalizedPath == null || normalizedPath.startsWith(".") && normalizedPath.length() > 2) {
return "../" + ResourceUtil.getName(path);
}
return normalizedPath;
}