| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Correct Date Time Stamp from FTP object |
| pwroblewski From: Austin, TX USA Posts: 38 Member Since: 11/21/03 |
posted November 21, 2003 1:20 PM I need the correct date/time from the directory list returned from. ftp.list object. If I use the sample code in ftplistview the date/time stamp is NOT correct. Since it is doing a FormatDate(obj.TimeStamp) it defaults to 12:00 on those that do not have the Time returned from a standard "ls -ail" command. When I telnet into the server and using the "ls -ail --full-time" I can see the real date/time the file. Can this real date/time be return from this FTP object in the list? Phil |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 21, 2003 1:25 PM FTP servers return the time as follows: Month Day [Year | Time] If the Time is there, the year is the current year. After a year, the server reports the year instead of the time. |
| pwroblewski From: Austin, TX USA Posts: 38 Member Since: 11/21/03 |
posted November 21, 2003 1:35 PM ls -ail --full-time 425986 -rw-r--r-- 1 sonus sonus 246 Tue Oct 22 17:22:07 2002 1000001.ACT ls -ail 425986 -rw-r--r-- 1 sonus sonus 246 Oct 22 2002 1000001.ACT The second is what the ftp object returns. This does not have the time on it. Phil |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 21, 2003 1:43 PM That's not the standard FTP listing style. You could probably send "-ail" as a modifier when you call List, however, the file listing would not parse correctly so you would have to parse it yourself. |
| pwroblewski From: Austin, TX USA Posts: 38 Member Since: 11/21/03 |
posted November 21, 2003 1:49 PM modifier when you call List.... How would I append the --full-time to the command? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 21, 2003 1:54 PM We send "LIST" followed by whatever you put in for the Pathname: Ftp1.List "-ail --full-time" should work. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|