org.apache.commons.io.file

## Interface PathFilter

- All Known Subinterfaces:
    IOFileFilter
  All Known Implementing Classes:
    AbstractFileFilter, AgeFileFilter, AndFileFilter, CanExecuteFileFilter, CanReadFileFilter, CanWriteFileFilter, DelegateFileFilter, DirectoryFileFilter, EmptyFileFilter, FalseFileFilter, FileEqualsFileFilter, FileFileFilter, HiddenFileFilter, MagicNumberFileFilter, NameFileFilter, NotFileFilter, OrFileFilter, PathEqualsFileFilter, PathVisitorFileFilter, PrefixFileFilter, RegexFileFilter, SizeFileFilter, SuffixFileFilter, SymbolicLinkFileFilter, TrueFileFilter, WildcardFileFilter, WildcardFilter
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface PathFilter

  A filter for `Path`s.
  Since:
    2.9.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `FileVisitResult` | `accept(Path path, BasicFileAttributes attributes)` Tests whether or not to include the specified Path in a result.

- - ### Method Detail

    - #### accept

          FileVisitResult accept(Path path,
                                 BasicFileAttributes attributes)

      Tests whether or not to include the specified Path in a result.
      Parameters:
        `path` - The Path to test.
        `attributes` - the file's basic attributes (TODO may be null).
      Returns:
        a FileVisitResult

Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.