code: public Set<String> findResourceNames(String location, URI locationUri) throws IOException {
          String filePath = toFilePath(locationUri);
          File folder = new File(filePath);
          if (!folder.isDirectory()) {
              LOGGER.debug("Skipping path as it is not a directory: " + filePath);
              return new TreeSet<>();
          }
  
          String classPathRootOnDisk = filePath.substring(0, filePath.length() - location.length());
          if (!classPathRootOnDisk.endsWith(File.separator)) {
              classPathRootOnDisk = classPathRootOnDisk + File.separator;
          }
          LOGGER.debug("Scanning starting at classpath root in filesystem: " + classPathRootOnDisk);
          return findResourceNamesFromFileSystem(classPathRootOnDisk, location, folder);
      }
docs: Scans a path on the filesystem for resources inside the given classpath location.
  
  @param location    The system-independent location on the classpath.
  @param locationUri The system-specific physical location URI.
  @return a sorted set containing all the resources inside the given location
  @throws IOException if an error accessing the filesystem happens