httpFile = (HttpFile) file;
}
if (!HttpUtils
.isDirectory(httpFile.getLink(), file.getPath()))
throw new ProtocolException(file
+ " is not a directory (mime type must be text/html)");
this.currentFile = httpFile;
} catch (Exception e) {
throw new ProtocolException("Failed to cd to " + file + " : "
+ e.getMessage(), e);
}
}