Community
Participate
Working Groups
From bug 197105 comment 27, see also bug 197758 On FTP, symbolic links are not reported as symbolic links but rather as files (or directories, once the patch for bug 197758 is applied). To be more correct, these should be reported with a classification of "symbolic link(file) to /link/target". See the SSH implementation for reference: SftpRemoteFile which overrides getClassification(), and SftpHostFile.getClassification() for reference. Adding this in 2.0.1 would be possible easily since FTPHostFile is "internal" so it's no API change. Commons Net gives the required information with FTPFile.isSymbolicLink() and FTPFile.getLink() already.
The getClassification() implementation in FTPRemoteFile is too simple, only returning type file or folder. I'll improve it based on the SftpRemoteFile and SftpHostFile implementations to return symbolic links as well.
Improved the getClassification() implementation in FTP. Now it returns file / folder / symbolic link types and binary in case is marked as an executable.