I use the GetList() method to identify file(s) to be downloaded from a client's sftp server. Sometimes the path that is passed to GetList() contains wildcards and sometimes it doesn't. For one particular client, when a path is passed in without a wildcard (looking for an exact match) the file is found but SftpItem.Path is incorrect. The path actually contains the correct file path twice separated by "//".
For the path passed into GetList() of
root/testfile.txt.1
The returned path is
root/testfile.txt.1//root/testfile.txt.1 (Unexpected)
However, if I changed the passed in path to include a wildcard
root/testfile.txt*
The returned path is correct
root/testfile.txt.1 (Expected)
Does the multiple extensions have something to do with it?
We are not running the latest version, but I noticed two items in the release notes:
SFTP: Added Sftp.Settings.DisableRealPathWorkaround option to disable workaround for WS_FTP SSH_FXP_REALPATH bug.
SFTP: Added workaround for SFTP servers that report duplicate extensions.
Could these be related and where can I get more information about what problems they were meant to fix?