src/main/java/io/avaje/classpath/scanner/internal/scanner/classpath/FileSystemClassPathLocationScanner.java
Set<String> findResourceNamesFromFileSystem(String classPathRootOnDisk, String scanRootLocation, File folder) {
    log.trace("scan resources in path: {} ({})", folder.getPath(), scanRootLocation);
    Set<String> resourceNames = new TreeSet<>();

    File[] files = folder.listFiles();
    if (files != null) {
      for (File file : files) {
        if (file.canRead()) {
          String resourcePath = toResourceNameOnClasspath(classPathRootOnDisk, file);
          if (file.isDirectory()) {
            if (!ignorePath(resourcePath)) {
              resourceNames.addAll(findResourceNamesFromFileSystem(classPathRootOnDisk, scanRootLocation, file));
            }
          } else {
            resourceNames.add(resourcePath);
          }
        }
      }
    }
    return resourceNames;
  }
/**
   * Finds all the resource names contained in this file system folder.
   *
   * @param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.
   * @param scanRootLocation    The root location of the scan on the classpath, without leading or trailing slashes.
   * @param folder              The folder to look for resources under on disk.
   * @return The resource names;
   */
Finds all the resource names contained in this file system folder.
@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.
@param scanRootLocation    The root location of the scan on the classpath, without leading or trailing slashes.
@param folder              The folder to look for resources under on disk.
@return The resource names.
Finds all the resource names contained in this file system folder . @param classPathRootOnDisk The location of the classpath root on disk with a trailing slash . @param scanRootLocation The root location of the scan on the classpath without leading or trailing slashes . @param folder The folder to look for resources under on disk . @return The resource names .
Set<String> findResourceNamesFromFileSystem(String classPathRootOnDisk, String scanRootLocation, File folder) {
    log.trace("scan resources in path: {} ({})", folder.getPath(), scanRootLocation);
    Set<String> resourceNames = new TreeSet<>();
    File[] files = folder.listFiles();
    if (files != null) {
      for (File file : files) {
        if (file.canRead()) {
          String resourcePath = toResourceNameOnClasspath(classPathRootOnDisk, file);
          if (file.isDirectory()) {
            if (!ignorePath(resourcePath)) {
              resourceNames.addAll(findResourceNamesFromFileSystem(classPathRootOnDisk, scanRootLocation, file));
            }
          } else {
            resourceNames.add(resourcePath);
          }
        }
      }
    }
    return resourceNames;
  }
Set < String > findResourceNamesFromFileSystem ( String classPathRootOnDisk , String scanRootLocation , File folder ) { log . trace ( "scan resources in path: {} ({})" , folder . getPath ( ) , scanRootLocation ) ; Set < String > resourceNames = new TreeSet < > ( ) ; File [ ] files = folder . listFiles ( ) ; if ( files != null ) { for ( File file : files ) { if ( file . canRead ( ) ) { String resourcePath = toResourceNameOnClasspath ( classPathRootOnDisk , file ) ; if ( file . isDirectory ( ) ) { if ( ! ignorePath ( resourcePath ) ) { resourceNames . addAll ( findResourceNamesFromFileSystem ( classPathRootOnDisk , scanRootLocation , file ) ) ; } } else { resourceNames . add ( resourcePath ) ; } } } } return resourceNames ; }
Finds all the resource names contained in this file system folder.
Finds all the resource names contained in this file system folder .