/**
* @param path The path to add or go to.
*/
public void addPath(String path) {
VFSPath newPath = new VFSPath(this.paths.size(), path);
VFSPath oldPath = null;
boolean add = true;
List newPaths = new ArrayList();
Iterator iter = this.paths.iterator();
while (iter.hasNext()) {
VFSPath element = (VFSPath) iter.next();
if (element.getPath().equals(newPath.getPath())) {
add = false;
newPaths.add(element);
break;
} else {
newPaths.add(element);