I download files daily from one ftp server which recently started returning unexpected results. I know how to workaround it in my program, but wondering if anyone run into similar issues and what causing this unexpected behaviour?
I download files in two steps:
- with NLST command check if file exists on FTP
- Download file with RETR command.
When I try to
NLST path/filename, Windows FTP will return
path/filename/filename as result. I can add * in the end of the NLST command (ie
NLST path/filename*), then FTP will return expected result of
path/filename. I'm wondering what causing FTP server to return what it returns?