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

    File[] files = folder.listFiles();
    if (files != null) {
      for (File file : files) {
        if (file.canRead()) {
          if (file.isDirectory()) {
            resourceNames.addAll(findResourceNamesFromFileSystem(scanRootLocation, file));
          } else {
            resourceNames.add(file.getPath());
          }
        }
      }
    }
    return resourceNames;
  }
/**
   * Finds all the resource names contained in this file system folder.
   *
   * @param scanRootLocation The root location of the scan on disk.
   * @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 scanRootLocation The root location of the scan on disk.
@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 scanRootLocation The root location of the scan on disk . @param folder The folder to look for resources under on disk . @return The resource names .
Set<String> findResourceNamesFromFileSystem(String scanRootLocation, File folder) {
    log.trace("scan path: {} ({})", folder.getPath(), scanRootLocation);
    Set<String> resourceNames = new TreeSet<>();
    File[] files = folder.listFiles();
    if (files != null) {
      for (File file : files) {
        if (file.canRead()) {
          if (file.isDirectory()) {
            resourceNames.addAll(findResourceNamesFromFileSystem(scanRootLocation, file));
          } else {
            resourceNames.add(file.getPath());
          }
        }
      }
    }
    return resourceNames;
  }
Set < String > findResourceNamesFromFileSystem ( String scanRootLocation , File folder ) { log . trace ( "scan path: {} ({})" , folder . getPath ( ) , scanRootLocation ) ; Set < String > resourceNames = new TreeSet < > ( ) ; File [ ] files = folder . listFiles ( ) ; if ( files != null ) { for ( File file : files ) { if ( file . canRead ( ) ) { if ( file . isDirectory ( ) ) { resourceNames . addAll ( findResourceNamesFromFileSystem ( scanRootLocation , file ) ) ; } else { resourceNames . add ( file . getPath ( ) ) ; } } } } return resourceNames ; }
Finds all the resource names contained in this file system folder.
Finds all the resource names contained in this file system folder .