*/
public synchronized void cd(ProtocolFile file) throws ProtocolException {
if (!this.cwd.equals(file)) {
LOG.log(Level.INFO, "Changing to directory '" + file + "'");
if (file.isRelativeToHOME())
file = new ProtocolFile(file.getRemoteSite(), new ProtocolPath(
this.homeDir.getProtocolPath().getPathString() + "/"
+ file.getProtocolPath().getPathString(), file
.isDirectory()));
chDir(file.getProtocolPath());
this.cwd = file;