[ https://issues.apache.org/jira/browse/VFS-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16243177#comment-16243177 ]
Sudhakar commented on VFS-648: ------------------------------ Yes remote directory value is "/inbound" String remoteDir = "/inbound"; URL for FTP server is created as follows String startPath = "ftp://" + this.host + ":" + this.port; //FileObject for root folder is created as follows FileObject sftpFile = this.fsManager.resolveFile(startPath, opts); //Directory listing FileObject outboundDirectory = sftpFile.resolveFile(remoteDir); FileObject[] children = outboundDirectory.getChildren(); Notes: I also tried above directory listing by enabiling passive mode, but without any success FtpFileSystemConfigBuilder.getInstance().setPassiveMode(opts, true); > “Invalid descendent file name” with Cleo Managed file transfer (MFT) FTP > server > ------------------------------------------------------------------------------- > > Key: VFS-648 > URL: https://issues.apache.org/jira/browse/VFS-648 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 2.0, 2.2 > Environment: VLTrader by Cleo on CentOS6 > Reporter: Sudhakar > Priority: Critical > > getChildren on sub directory method returns “Invalid descendent file name” > with Cleo Managed file transfer (MFT) FTP server. Where I was able to use > getChildren on root folder without any issues. > //Code > FileObject outboundDirectory = sftpFile.resolveFile(remoteDir); > children = outboundDirectory.getChildren(); > //Exception thrown > org.apache.commons.vfs2.FileSystemException: Invalid descendent file name > I was able to use FTP clients like FileZill etc to connect and get list of > files from the same server. -- This message was sent by Atlassian JIRA (v6.4.14#64029)