| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: TimeStamp problems |
| Thierry From: Ballsbridge, Republic of Ireland Posts: 4 Member Since: 05/17/03 |
posted May 17, 2003 10:36 PM Hi All, I'm having a problem when it comes down to timestamp. Let's say the date on one of my file on the server is 12/05/2003 03:30. When I download it, it changes the date to the time it was downloaded at on my client i.e. 18/05/2003 00:45. I ended up adding some code to get the listing and then for every downloaded files I use APIs to set the date and time to the specific time that matches the date and time from the listing. This works fine, but then when I upload the file back to the server, I would like the timestamp to be the same as in the client. This would allow me to create some sort of version control based on timestamp and/or size. i.e newer files on client get uploaded to server, newer file on server get downloaded on client. Is there anyway to send/retrieve a file and depending which way it's going to keep or set a specific date and time. I use another toolkit, but it's more UI based called FTP Voyager, and there is an option to keep the date as they were either on the server when downloaded to the client or keep the date of the file on the client when uploaded to the server. I don't know how they do it, but it would be great if you could let me know how to do this! Thanks. Thierry |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 20, 2003 4:19 PM Hi Thierry, There are no commands in the Ftp protocol for doing this, so for retrieving files, you would do exactly as you are doing. For storing files, I suppose you would have to do a comparison between the timestamps locally and on the server, and then adjust the file's time prior to storing it, so that the end result was what was expected. In other words, if the file's time was shown as +3 hours on the server, you could change it to -3 hours locally before sending (and then change the local file's date back to what it was). I'm not sure of another way you could control this. Hope it helps, -ken |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|