123456789101112131415161718192021222324252627282930 |
- #ifndef CURLFTP_H
- #define CURLFTP_H
- #include "curl.h"
- #include <string>
- class CurlFtp
- {
- public:
- CurlFtp();
- ~CurlFtp();
-
- static std::string listDir(const std::string &ftpUrl, const std::string &username, const std::string &password);
-
- static bool listFiles(const std::string &ftpUrl, const std::string &username, const std::string &password);
-
-
-
-
-
- static size_t writeCallback(void *contents, size_t size, size_t nmemb, std::string *s);
-
- static bool createDir(const std::string &ftpUrl, const std::string &username, const std::string &password, const std::string &dirName);
- };
- #endif
|