Class FilePathFilter

    • Constructor Detail

      • FilePathFilter

        public FilePathFilter()
    • Method Detail

      • filterPath

        public abstract boolean filterPath​(Path filePath)
        Returns true if the filePath given is to be ignored when processing a directory, e.g.
        
         public boolean filterPaths(Path filePath) {
             return filePath.getName().startsWith(".") || filePath.getName().contains("_COPYING_");
         }
         
      • createDefaultFilter

        public static FilePathFilter createDefaultFilter()
        Returns the default filter, which excludes the following files:
        • Files starting with "_"
        • Files starting with "."
        • Files containing the string "_COPYING_"
        Returns:
        The singleton instance of the default file path filter.