src/main/java/io/avaje/classpath/scanner/internal/scanner/filesystem/FileSystemScanner.java
public List<Resource> scanForResources(Location location, Predicate<String> predicate) {
    String path = location.path();
    File dir = new File(path);
    if (!dir.isDirectory() || !dir.canRead()) {
      log.debug("Unable to resolve location filesystem: {}", path);
      return Collections.emptyList();
    }
    List<Resource> resources = new ArrayList<>();
    for (String resourceName : findResourceNames(path, predicate)) {
      resources.add(new FileSystemResource(resourceName));
    }
    return resources;
  }
/**
   * Scans the FileSystem for resources under the specified location, starting with the specified prefix and ending with
   * the specified suffix.
   *
   * @param location  The location in the filesystem to start searching. Subdirectories are also searched.
   * @param predicate The predicate used to match resources.
   * @return The resources that were found.
   */
Scans the FileSystem for resources under the specified location, starting with the specified prefix and ending with
the specified suffix.

@param location  The location in the filesystem to start searching. Subdirectories are also searched.
@param predicate The predicate used to match resources.
@return The resources that were found.
Scans the FileSystem for resources under the specified location starting with the specified prefix and ending with the specified suffix . @param location The location in the filesystem to start searching . Subdirectories are also searched . @param predicate The predicate used to match resources . @return The resources that were found .
public List<Resource> scanForResources(Location location, Predicate<String> predicate) {
    String path = location.path();
    File dir = new File(path);
    if (!dir.isDirectory() || !dir.canRead()) {
      log.debug("Unable to resolve location filesystem: {}", path);
      return Collections.emptyList();
    }
    List<Resource> resources = new ArrayList<>();
    for (String resourceName : findResourceNames(path, predicate)) {
      resources.add(new FileSystemResource(resourceName));
    }
    return resources;
  }
public List < Resource > scanForResources ( Location location , Predicate < String > predicate ) { String path = location . path ( ) ; File dir = new File ( path ) ; if ( ! dir . isDirectory ( ) || ! dir . canRead ( ) ) { log . debug ( "Unable to resolve location filesystem: {}" , path ) ; return Collections . emptyList ( ) ; } List < Resource > resources = new ArrayList < > ( ) ; for ( String resourceName : findResourceNames ( path , predicate ) ) { resources . add ( new FileSystemResource ( resourceName ) ) ; } return resources ; }
Scans the FileSystem for resources under the specified location, starting with the specified prefix and ending with
 the specified suffix.
Scans the FileSystem for resources under the specified location starting with the specified prefix and ending with the specified suffix .