Using WebClient
, how can I download a file from a FTP server with the filetime from server?
using (WebClient client = new WebClient()) {
client.DownloadFile("ftp://ftp123.abc.com/xyz/file.txt", "file.txt");
}
The code above creates a new file, so its timestamp is at the time of the download.
The question is how to retrieve the timestamp from the server file.