docs: protected static String fileLocationTransform(String location, int segment) {
        if (location.endsWith(File.separator)) {
           return location.substring(0, location.length() - 1) + "-" + segment + File.separatorChar;
        }
        return location + File.separatorChar + segment;
     }