@Override
    public List<ApplicationFile> listFiles(final PathFilter filter) {
        List<ApplicationFile> files = new ArrayList<>();
        if (!file.isDirectory()) return files;

        FileFilter fileFilter = pathname -> filter.accept(path.append(pathname.getName()));
        File[] list = file.listFiles(fileFilter);
        if (list == null) return files;

        for (File child : list) {
            // Ignore dot-files.
            if (!child.getName().startsWith(".")) {
                files.add(new FilesApplicationFile(path.append(child.getName()), child));
            }
        }
        return files;
    }
@author Ulf Lilleengen
@author Vegard Havdal
config-application-package/src/main/java/com/yahoo/config/model/application/provider/FilesApplicationFile.java