I have an FTP and I want to know the files that has been added today. (in my business rules, there is no update to the files, so the files could be added and then can't be modified or removed at all).
I tried this:
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://172.28.4.7/");
request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
Console.WriteLine("{0} {1}", "ftp://172.28.4.7/", response.LastModified);
Stream responseStream = response.GetResponseStream();
StreamReader reader = new StreamReader(responseStream);
But, as expected, in the console I got the date of the last modifying.
Could you help me please to know the last added files?