开发者

LibCurl FTP directory list of a subdirectory

I'm new to this libcurl stuff and struggling trying to get directory content of a sub-folder from the site I connect to.

I can successfully provide user and password to an .

Once connected, I want to get a list of files in a fol开发者_如何学JAVAder "subfolder1". No matter what I'm trying, I am only getting the directory content of the root as connected.

I'm seriously spinning wheels here and need some help. I'm not even going to post the many iterative attempts as it might confuse the final answer that I might find here.

Thanks



UPDATE...

Although it doesn't make sense that I can't issue my own FTP commands to force changing to a directory, THEN get the directory list, by adding

curl_easy_setopt(myCurl, CURLOPT_URL, FullURLToSubFolder );

appears to force it and I get proper directory listing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜