Home > database >  How to access the FTP file modification time
How to access the FTP file modification time

Time:09-25

How to access the FTP directory file modification time, now can only get points appeared to be using FtpFindFirstFile function modification time, is there a way to get to the second modification time, who can know?

CodePudding user response:

 global type systemtime from structure 
The integer wYear
The integer wMonth
The integer wDayOfWeek
The integer wDay
The integer wHour
The integer wMinute
The integer wSecond
The integer wMilliseconds
End type


 global type win32_find_dataa from structure 
Unsignedlong dwfileattributes
Filetime ftcreationtime
Filetime ftlastaccesstime
Filetime ftlastwritetime
Unsignedlong nfilesizehigh
Unsignedlong nfilesizelow
Unsignedlong dwreserved0
Unsignedlong dwreserved1
Character cfilename [260]
Character calternatefilename [14]
End type





Win32_find_dataa lpFindFileData
Systemtime SST

FileTimeToSystemTime (lpFindFileData ftlastwritetime, SST)

So that is not in the SST seconds (wSecond) and ms (wMilliseconds)

CodePudding user response:

First of all thank you for your reply
But
Win32_find_dataa lpFindFileData
Systemtime SST

FileTimeToSystemTime (lpFindFileData ftlastwritetime, SST)

This is also so I use, but wSecond and wMilliseconds value is 0, I don't know why?
  • Related