cURL / Mailing Lists / curl-library / Single Mail


Brain-fart question...

From: Hall, Scott (GE Healthcare, consultant) <>
Date: Fri, 10 Aug 2007 14:40:31 -0400

I know that my brain must be fried or something but I must be missing

I am sucessfully transferring individual files via FTP (and TFTP) -
using my own
write function and all.

But now I need to emulate the "mget" and "mput" behavior, and I just
can't get
my head wrapped around how to do an "mget" ("mput" is easy: get a list
of the
source files using your OS's and compiler's directory lister -- eg.
posix vs
MS vstudio -- and map the input regular expression against the list to
matches, and individually transfer matching files using my previous

For example, if I can get a list of files in the directory specified in
input regular expression on the remote system, I can then similarly
individual matched filenames using my existing "get" function.

But what the heck are the sequence of curl_easy*() functions to get a
list of
files and their byte sizes (and maybe timestamps) from a remote
(ala the FTP "dir" command)

- sgh
Received on 2007-08-10