private File getFile()

in src/main/java/org/apache/sling/fsprovider/internal/mapper/FileResourceMapper.java [291:304]


    private File getFile(final String path) {
        if (path.equals(providerRoot)) {
            return providerFile;
        }
        if (path.startsWith(providerRootPrefix)) {
            String relPath = Escape.resourceToFileName(path.substring(providerRootPrefix.length()));
            File file = new File(providerFile, relPath);
            if ((contentFileExtensions == null || !contentFileExtensions.matchesSuffix(file))
                    && fileStatCache.exists(file)) {
                return file;
            }
        }
        return null;
    }