ftp dates

Jay Madren JaysLists at triad.rr.com
Mon Jul 26 15:59:14 EDT 2004


I wanted to do this too, but there are some problems.  One is the
information and/or format of the listing can vary among different ftp
servers, making a universal solution difficult.  Another is when you upload
or download a file via ftp, the file is assigned the current date/time, not
the original date/time.  The ability to modify the date/time of a file in RR
could overcome this, but only for downloads.

I have been using a system of using a "control" file that contains the
date/time for each file on the ftp server, and pkzipc (command line version)
to preserve the date/time of the files (in addition to compressing them).
But each computer must have the pkzip utilities.  Again, if RR had the
ability to modify the date/time of a file (or someone wrote an external to
do it - hint hint), I could build a utility to handle all of this without
having to rely on pkzip.

Jay Madren

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com]On Behalf Of Alex
Tweedly
Sent: Sunday, July 25, 2004 18:11
To: How to use Revolution
Subject: Re: ftp dates


At 23:45 25/07/2004 +0200, Ton Cardona wrote:

>I would like to compare the modification date of a binary file on an ftp
>server with that of a corresponding binary file in a folder on the hard
disk.
>
>The purpose is to download files of the ftp server ony when their
>modification date date is older than those of the files in the hard disk
>
>I guess there must be a way of doing it, but I am unable to find out how.

There's a "How To" on How to list the files in an FTP directory - summary
is that an FTP URL which finishes in a "/" will give back a directory
listing, including the name, size, permissions, owner, and last
modification date

The example given is :
   put URL "ftp://ftp.example.net/mydir/" into field "List"

Take comparing modification times between systems for different clock
settings - you may want to check current time on each machine and use that
to adjust your decisions.

-- Alex.



More information about the use-livecode mailing list