[RESOLVED] File Last Modified Time?
How do i can make application check Last Modified time from file via FTP.
And check out which is your folder's last modified time.
If FTP File Modified Time is latest than your file's folder then WC.DownloadFile(FilePath/File)
Thanks.
Cutted of: Check last modified time is not later than FTP file then download and overwrite exist.
Re: File Last Modified Time?
Code:
Dim file As New System.IO.FileInfo("Filenamewithpath")
file.LastWriteTime
Re: File Last Modified Time?
The IO.FileInfo Structure, among the others, contains the following members:
- LastWriteTime
- LastWriteTimeUtc
Re: File Last Modified Time?
Re: [RESOLVED] File Last Modified Time?
I don't believe you can actually obtain that information via FTP with a FileInfo object. That would require the file to be available on the local file system.
You will likely need to send FTP commands to the FTP server which will return this information and you will need to parse it.