Reputation: 341
I'm programming a C# .NET console application to retrieve files from an SFTP server. The host posts a new file every day, with 7 days of files in the same directory. The problem is that they use the exact same file name every day (perhaps they're on VMS?) The only difference in the files that I can see through SFTP is the Changed date/time and the file size.
I'm using the Renci.SshNet library to retrieve files. Unfortunately, the only way I have to specify which file to retrieve is by giving it the file name. Since all the files are named the same, it ALWAYS retrieves the newest file.
How can I retrieve any of the previous files?
Upvotes: 1
Views: 1677