// modify vfs to be root based if HOME directory based
if (!vfs.isRootBased()) {
String homeDirPath = frs.getHomeDir(remoteSite).getProtocolPath()
.getPathString();
VirtualFile root = new VirtualFile(homeDirPath, true);
root.addChild(vfs.getRootVirtualFile());
vfs = new VirtualFileStructure(homeDirPath + "/"
+ vfs.getPathToRoot(), root.getRootDir());
frs.changeToHOME(remoteSite);
}