Class PathFileFilter

  • All Implemented Interfaces:
    FileFilter, FilenameFilter, FileVisitor<Path>, PathMatcher, org.apache.commons.io.file.PathFilter, org.apache.commons.io.file.PathVisitor, org.apache.commons.io.filefilter.IOFileFilter

    public class PathFileFilter
    extends org.apache.commons.io.filefilter.AbstractFileFilter
    Matches file if any of it's parents has given name
    Since:
    v3.3
    • Field Summary

      • Fields inherited from interface org.apache.commons.io.filefilter.IOFileFilter

        EMPTY_STRING_ARRAY
    • Constructor Detail

      • PathFileFilter

        public PathFileFilter​(String dirName)
    • Method Detail

      • accept

        public boolean accept​(File pathname)
        Specified by:
        accept in interface FileFilter
        Specified by:
        accept in interface org.apache.commons.io.filefilter.IOFileFilter
        Overrides:
        accept in class org.apache.commons.io.filefilter.AbstractFileFilter