in pekko-connectors-sample-rotate-logs-to-ftp/src/main/java/playground/filesystem/impl/JimfsView.java [87:96]
public FtpFile getWorkingDirectory() throws FtpException {
FtpFile fileObj;
if (currDir.equals("/")) {
fileObj = getHomeDirectory();
} else {
Path path = fileSystem.getPath(rootDir, currDir.substring(1));
fileObj = new JimfsFtpFile(currDir, path, user);
}
return fileObj;
}