Class PathFileFilter

java.lang.Object
org.apache.commons.io.filefilter.AbstractFileFilter
com.atlassian.bamboo.utils.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(File pathname)
     

    Methods inherited from class org.apache.commons.io.filefilter.AbstractFileFilter

    accept, handle, postVisitDirectory, preVisitDirectory, toString, visitFile, visitFileFailed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.io.filefilter.IOFileFilter

    accept, and, matches, negate, or
  • Constructor Details

    • PathFileFilter

      public PathFileFilter(String dirName)
  • Method Details

    • 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