public Path withDirectory(final String directory) {
		final Path result = new Path(this);
		result.setDirectory(directory);
		return result;
	}
public Path withDirectory(final String directory) {
		final Path result = new Path(this);
		result.setDirectory(directory);
		return result;
	}
public Path withDirectory ( final String directory ) { final Path result = new Path ( this ) ; result . setDirectory ( directory ) ; return result ; }
Create a new path with a given directory.

@param directory the directory for the path
@return the new path
Create a new path with a given directory .