Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: .timestamp
vinny
vince@coppolamyer.com

From: Forestville, NY USA
Posts: 23
Member Since: 08/07/00
posted July 18, 2001 8:05 PM

I'm using the ftp control to syncronize local and remote file by Modification date. The problem is that when the local file is newer and an upload takes place, the date of the file on the server does not match that of the local file. For example, if the local file is marked 07/17/01 22:05, the same file on the server is marked 07/16/01 6:20 . I can easily move these files back and forth with cuteFTP and the dates always corrospond, when I do it with the Dart control they always change.
Vince
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted July 20, 2001 11:01 AM

Ftp1.Listing.Timestamp reflects the modified date of the file. From my testing the Dart FTP Control and CuteFTP exhibit the same behavior. When a file is uploaded, the modified date is updated to reflect the server's local time. It is a little strange for the modified date to be earlier on the server than the local file (of course, this may be correct, depending on your server's location and the correctness of it's time). If I have misunderstood something, please respond with exactly what you are trying to do.

You can always try to get the latest updates at http://dart.com/downloads/update.exe and see if that helps with any problems.
vinny
vince@coppolamyer.com

From: Forestville, NY USA
Posts: 23
Member Since: 08/07/00
posted July 23, 2001 8:37 PM

Here is the code:
    a = """" & FileList.Column(1) & """"
    b = localPath
    dFTP.Directory = RemDir
    dFTP.MGet a, b
FileList is a listbox, a and b are string variables, localpath and RemDir are text boxes.

 When I run this, the time stamp on my machine is the time of the download, if I download the same file with cuteFTP, the time stamp on my machine is the same as on the server.
 example: with cuteFTP I see file 002.gif with time stamp 07/18/01 7:01, when I download it with cuteFTP I see the same date in my local directory. When I download the same file with the ftp object and the above code the time indicated is the time of the download.
 Is there another property I should set?
Vince
Vince
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted July 24, 2001 9:38 AM

You are right. I have submitted this as a bug to be fixed in the next release. Sorry I couldn't be of more help.
vinny
vince@coppolamyer.com

From: Forestville, NY USA
Posts: 23
Member Since: 08/07/00
posted July 24, 2001 7:42 PM

Do you have any idea when this will be rectified? It is essential that this works for the application I purchased the control for.

Vince
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted August 3, 2001 3:42 PM

We have since determined that this is actually not a bug. Any changes to the file date/time should be done within your application after you have determined what the date/time is from the file listing. The only way for us to determine the date and time of the file is to do our own internal LIST on the file, which would add time to the retrieve.
vinny
vince@coppolamyer.com

From: Forestville, NY USA
Posts: 23
Member Since: 08/07/00
posted August 6, 2001 9:44 PM

Actually, I don't want to change anything about the local file. I want to download files that do not exist or are newer on the server. I would expect that any time a local file is created or replaced any pertinant information about it would also be updated. I realize this can be coded by geting that info before I download, but then why did I buy an ftp control?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 6, 2001 10:23 PM


I'm not sure I understand exactly what you are saying, particularly your comment about "why did I buy an ftp control?". I assume that you bought a File Transfer Control to transfer files or get file listings.

The examples you used in your previous messages are applications, not controls. You would use our control to write one of those applications not replace it.

The simple fact is that when we create a file, we don't modify the timestamp after the file is written and we currently have no plans to change that.

If you want to change file times and dates, you are going to have to do that yourself after downloading the file.

Regards,

Tony Priest
Dart Tech Support

User82

Posts: 1
Member Since: 04/24/02
posted April 24, 2002 5:25 AM

Use the "touch [my file]" command on unix.

usage: touch [-acfm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file ...

or "man touch" for more infos ;)
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX