hi,
i have the need to download files from ftp and archive them locally. I want to arrange them by their ftp's last modified date time, a new directory for each YYYYMMDD.
I'm trying to read that attribute, but no luck.
That's what im doing, file download works fine but i cannot retrieve modifieddatetime attribute (lastModifiedDateTime variable gets an empty value in the end...):
System.Object ftpo;
System.Object ftpResponse;
System.Net.FtpWebRequest request;
System.IO.Stream responseStream;
System.Net.FtpWebResponse response;
utcDateTime lastModifiedDateTime;
...
//ftp login operations...
...
request.set_Method("RETR");
request.set_Proxy( System.Net.GlobalProxySelection::GetEmptyWebProxy() );
ftpResponse = request.GetResponse();
response = ftpResponse;
responseStream = response.GetResponseStream();
lastModifiedDateTime = response.get_LastModified();
*This post is locked for comments