How can i download all directory from server recursively. I use WinINet and this problem solve very hard. I interested th开发者_如何学JAVAere is some easy way that download files and folders from ftp on visual-c++?
It should be possible to use FTP mget command. Otherwise, if possible you can zip the whole directory on the server and use FTP get. Else, you can use rsync, which provides the additional functionality of syncing any change you make later on within the directory on the server.
See this discussion for more.
There might be libraries that implement FTP (e.g. Curl), rsync etc. and provide a C++ interface.
messing around with WinINet.dll can be quite painful.
QT has the class QFtp
which does all the work for you.
精彩评论