On Wed, Dec 17, 2008 at 05:10:01PM +1100, Sundar, Karthik wrote:
> I CWD to a directory and use STAT *.* command to get the list of all the files
> in the directory printed in the stdout .But is there any way I can store this
> result in a variable.

You should be able to get it through a header callback function. But why
do it this way? Why not just let libcurl itself give you a directory
listing? Just add a slash to the end of the URL or use CURLOPT_DIRLISTONLY.
It's not a good idea to use CWD in a quote command, anyway, because it puts
libcurl out of sync with the server w.r.t. CWD.