code: private void addFileSeed(URI baseUri, String fileName, Pattern condition) {
  		String fullpath = baseUri.getEscapedPath();
  		if (fullpath == null) {
  			fullpath = "";
  		}
  
  		String name = baseUri.getEscapedName();
  		if (name == null) {
  			name = "";
  		}
  
  		String pathminusfilename = fullpath.substring(0, fullpath.lastIndexOf(name));
  		if (pathminusfilename.isEmpty()) {
  			pathminusfilename = "/";
  		}
  
  		if (condition.matcher(pathminusfilename).find()) {
  			return;
  		}
  
  		String uri = buildUri(baseUri.getScheme(), baseUri.getRawHost(), baseUri.getPort(), pathminusfilename + fileName);
  		try {
  			this.seedList.add(new URI(uri, true));
  		} catch (Exception e) {
  			log.warn("Error while creating a seed URI for file [" + fileName + "] from [" + baseUri + "] using [" + uri + "]:",
  					e);
  		}
  	}
docs: Adds a file seed using the given base URI, file name and condition.
  <p>
  The file is added as part of the path, without existing file name. For example, with base URI as
  {@code http://example.com/some/path/file.html} and file name as {@code .git/index} it's added the seed
  {@code http://example.com/some/path/.git/index}.
  <p>
  If the given condition matches the base URI's path without the file name, the file seed is not added (this prevents
  adding the seed once again).
  
  @param baseUri the base URI to construct the file seed.
  @param fileName the name of the file seed.
  @param condition the condition to add the file seed.