I use command line WinSCP and issue a directory listing to a UNIX (or UNIX-like) FTP server via the method Session.ListDirectory. I get back a list of files with names and sizes, but the LastWriteTime is always 12:00:00 AM (midnight) even though the date is right. When I do a GET, the file has the same date as the DIR listing, but the time is now correct, for example 1:15 PM. I want to compare whether a file has been updated, so the time can be critical within a date. BTW, the date in my example was 12/10/2015, not even a month ago.
I use a workaround to extract and compare just the date, but I wonder whether anybody has encountered this before and knows a solution.
Possibly related to this, I noticed that a DIR listing gives me a 'Mode' attribute on a Windows server but 'FileType' on a UNIX-like server. Am I overlooking critical parameters to get what I want in the right format?
Oh, and I am new to this. Thanks for your patience.