# Uses of Interface
org.apache.commons.io.file.PathFilter

Packages that use PathFilter
Package
Description
org.apache.commons.io.file
Provides extensions in the realm of `java.nio.file`.
org.apache.commons.io.filefilter
Provides the an interface `IOFileFilter` that combines both `FileFilter` and `FilenameFilter`.

- ## Uses of PathFilter in org.apache.commons.io.file

  Methods in org.apache.commons.io.file that return PathFilter
  Modifier and Type
  Method
  Description
  `PathFilter`
  DirectoryStreamFilter.`getPathFilter()`
  Gets the path filter.
  Methods in org.apache.commons.io.file with parameters of type PathFilter
  Modifier and Type
  Method
  Description
  `static Path[]`
  PathUtils.`filter(PathFilter filter, Path... paths)`
  Applies an `IOFileFilter` to the provided `File` objects.
  `static DirectoryStream<Path>`
  PathUtils.`newDirectoryStream(Path dir, PathFilter pathFilter)`
  Creates a new DirectoryStream for Paths rooted at the given directory.
  `static Stream<Path>`
  PathUtils.`walk(Path start, PathFilter pathFilter, int maxDepth, boolean readAttributes, FileVisitOption... options)`
  Returns a stream of filtered paths.
  `static AccumulatorPathVisitor`
  AccumulatorPathVisitor.`withBigIntegerCounters(PathFilter fileFilter, PathFilter dirFilter)`
  Constructs a new instance configured with a BigInteger `Counters.PathCounters`.
  `static AccumulatorPathVisitor`
  AccumulatorPathVisitor.`withLongCounters(PathFilter fileFilter, PathFilter dirFilter)`
  Constructs a new instance configured with a long `Counters.PathCounters`.
  Constructors in org.apache.commons.io.file with parameters of type PathFilter
  Modifier
  Constructor
  Description
  ``
  `AccumulatorPathVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter)`
  Constructs a new instance.
  ``
  `AccumulatorPathVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, IOBiFunction<Path,IOException,FileVisitResult> visitFileFailed)`
  Constructs a new instance.
  ``
  `CopyDirectoryVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, Path sourceDirectory, Path targetDirectory, CopyOption... copyOptions)`
  Constructs a new visitor that deletes files except for the files and directories explicitly given.
  ``
  `CountingPathVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter)`
  Constructs a new instance.
  ``
  `CountingPathVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, IOBiFunction<Path,IOException,FileVisitResult> visitFileFailed)`
  Constructs a new instance.
  ``
  `DirectoryStreamFilter(PathFilter pathFilter)`
  Constructs a new instance for the given path filter.

- ## Uses of PathFilter in org.apache.commons.io.filefilter

  Subinterfaces of PathFilter in org.apache.commons.io.filefilter
  Modifier and Type
  Interface
  Description
  `interface`
  `IOFileFilter`
  An interface which brings the `FileFilter`, `FilenameFilter`, `PathFilter`, and `PathMatcher` interfaces together.
  Classes in org.apache.commons.io.filefilter that implement PathFilter
  Modifier and Type
  Class
  Description
  `class`
  `AbstractFileFilter`
  Abstracts the implementation of the `FileFilter` (IO), `FilenameFilter` (IO), `PathFilter` (NIO) interfaces via our own `IOFileFilter` interface.
  `class`
  `AgeFileFilter`
  Filters files based on a cutoff time, can filter either newer files or files equal to or older.
  `class`
  `AndFileFilter`
  A `FileFilter` providing conditional AND logic across a list of file filters.
  `class`
  `CanExecuteFileFilter`
  This filter accepts `File`s that can be executed.
  `class`
  `CanReadFileFilter`
  This filter accepts `File`s that can be read.
  `class`
  `CanWriteFileFilter`
  This filter accepts `File`s that can be written to.
  `class`
  `DelegateFileFilter`
  This class turns a Java FileFilter or FilenameFilter into an IO FileFilter.
  `class`
  `DirectoryFileFilter`
  This filter accepts `File`s that are directories.
  `class`
  `EmptyFileFilter`
  This filter accepts files or directories that are empty.
  `class`
  `FalseFileFilter`
  A file filter that always returns false.
  `class`
  `FileEqualsFileFilter`
  Accepts only an exact `File` object match.
  `class`
  `FileFileFilter`
  This filter accepts `File`s that are files (not directories).
  `class`
  `HiddenFileFilter`
  This filter accepts `File`s that are hidden.
  `class`
  `MagicNumberFileFilter`
  File filter for matching files containing a "magic number".
  `class`
  `NameFileFilter`
  Filters file names for a certain name.
  `class`
  `NotFileFilter`
  This filter produces a logical NOT of the filters specified.
  `class`
  `OrFileFilter`
  A `FileFilter` providing conditional OR logic across a list of file filters.
  `class`
  `PathEqualsFileFilter`
  Accepts only an exact `Path` object match.
  `class`
  `PathMatcherFileFilter`
  Delegates matching to a `PathMatcher`.
  `class`
  `PathVisitorFileFilter`
  A file filter backed by a path visitor.
  `class`
  `PrefixFileFilter`
  Filters file names for a certain prefix.
  `class`
  `RegexFileFilter`
  Filters files using supplied regular expression(s).
  `class`
  `SizeFileFilter`
  Filters files based on size, can filter either smaller files or files equal to or larger than a given threshold.
  `class`
  `SuffixFileFilter`
  Filters files based on the suffix (what the file name ends with).
  `class`
  `SymbolicLinkFileFilter`
  This filter accepts `File`s that are symbolic links.
  `class`
  `TrueFileFilter`
  A file filter that always returns true.
  `class`
  `WildcardFileFilter`
  Filters files using the supplied wildcards.
  `class`
  `WildcardFilter`
  Deprecated.
  Use WildcardFileFilter.