code: public Path withDirectory(final String directory) {
  		final Path result = new Path(this);
  		result.setDirectory(directory);
  		return result;
  	}
docs: Create a new path with a given directory.
  
  @param directory the directory for the path
  @return the new path