开发者

LibCurl FTP directory list of a subdirectory

开发者 https://www.devze.com 2023-01-26 09:28 出处:网络
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'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

精彩评论

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