使用libcurl实现ftp断点续传功能
须使用64位开发环境,所上传库均是64位版本
支持多线程传输不同文件
curl_ftp_upload为C++工程目录,包含ftp上传模块、日志模块和守护进程模块,代码支持跨平台;
pd_upload为python工程目录,使用cffi调用ftp上传模块;
windows编译C++库: `cmake -G “Visual Studio 15 Win64” …
python需安装以下模块:
pip install cffi unqlite PyInstaller
使用PyInstaller打包客户端源码为可执行文件:
pyinstaller -F pd_upload.py --noconsole --distpath ..\bin
文档请参考doc目录
download: https://github.com/curl/curl/releases
ref:
libcurl:
https://curl.haxx.se/libcurl/c/ftpuploadresume.html
https://curl.haxx.se/libcurl/c/ftpgetinfo.html
unqlite: https://github.com/coleifer/unqlite-python