I try to get folder's parent with Apache VFS using relative path, but I get "Invalid relative path"
public static void main(String[] args) throws Exception {
FileSystemManager fileSystemManager = VFS.getManager();
FileObject fileObject = fileSystemManager
.resolveFile("sftp://myuser:mypassword@myhost/"); // works!!
FileObject root = fileObject.resolveFile("../"); // fails!!
FileObject fileObjects[] = root.getChildren();
...
I tried "/.." , "/../" as well, all got exception. What is the right way to the parent directory?
P.S #getParent will not work, It's for files only, not directories.