Hi, I am doing uplift of apache SSHD from a very old version (0.12) to a newer version (2.4.0). During this I ran into a peculiar piece of code. There is an extension to the, now removed, NativeFileSystemFactory. The method,
public FileSystemView createFileSystemView(Session session) is overridden and in the end I see this code, Map<String, String> roots = new HashMap<>(); roots.put(baseDirectory, baseDirectory); FileSystemView fsView = new NativeFileSystemView(userName, roots, baseDirectory, File.separatorChar, caseInsensitive); return fsView; What is basically done here is to map the baseDirectory so its name. A directory /home/user/path/to/dir will thus be /home/user/path/to/dir in the sftp server as well, instead of /path/to/dir. This is not the easiest to replace in my opinion. Is there any way to achieve the same with the latest SSHD version? BR Patrik