src/main/java/io/avaje/classpath/scanner/internal/scanner/classpath/FileSystemClassPathLocationScanner.java
private String toResourceNameOnClasspath(String classPathRootOnDisk, File file) {
    String fileName = file.getAbsolutePath().replace("\\", "/");
    //Cut off the part on disk leading to the root of the classpath
    //This leaves a resource name starting with the scanRootLocation,
    //   with no leading slash, containing subDirs and the fileName.
    return fileName.substring(classPathRootOnDisk.length());
  }
/**
   * Converts this file into a resource name on the classpath.
   *
   * @param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.
   * @param file                The file.
   * @return The resource name on the classpath.
   */
Converts this file into a resource name on the classpath.
@param classPathRootOnDisk The location of the classpath root on disk, with a trailing slash.
@param file                The file.
@return The resource name on the classpath.
Converts this file into a resource name on the classpath . @param classPathRootOnDisk The location of the classpath root on disk with a trailing slash . @param file The file . @return The resource name on the classpath .
private String toResourceNameOnClasspath(String classPathRootOnDisk, File file) {
    String fileName = file.getAbsolutePath().replace("\\", "/");
    return fileName.substring(classPathRootOnDisk.length());
  }
private String toResourceNameOnClasspath ( String classPathRootOnDisk , File file ) { String fileName = file . getAbsolutePath ( ) . replace ( "\\" , "/" ) ; return fileName . substring ( classPathRootOnDisk . length ( ) ) ; }
Converts this file into a resource name on the classpath.
Converts this file into a resource name on the classpath .
//Cut off the part on disk leading to the root of the classpath //This leaves a resource name starting with the scanRootLocation, //   with no leading slash, containing subDirs and the fileName.