cURL / Mailing Lists / curl-users / Single Mail

curl-users

Create empty files with timestamp

From: <renaud_chaillat_at_netcourrier.com>
Date: Mon, 27 May 2002 11:42:29 +0200 (CEST)

   Hi,

We have a need here at work, to create local files even
when the remote ftp file is empty (like other ftp clients).
This is useful when associated with -R to keep the timestamp.

We can more or less simulate it with retrieving filelist
first and make a touch with the date when getting error
code 19, but having curl create the file just like it is
on the remote ftp server would be far better.

On a side note, is there a way to get all the files
in a ftp directory without getting the list first and
iterating ?

Best regards,
Renaud

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-05-27