Class FilePathFilter.DefaultFilter

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    FilePathFilter

    public static class FilePathFilter.DefaultFilter
    extends FilePathFilter
    The default file path filtering method and is used if no other such function is provided. This filter leaves out files starting with ".", "_", and "_COPYING_".
    See Also:
    Serialized Form
    • Method Detail

      • filterPath

        public boolean filterPath​(Path filePath)
        Description copied from class: FilePathFilter
        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_");
         }
         
        Specified by:
        filterPath in class FilePathFilter