Browse Source

V1.6.10
1、完成了对Windows的兼容,日志输出方式暂未改变

Apple 5 days ago
parent
commit
6239be6d97
1 changed files with 2 additions and 2 deletions
  1. 2 2
      module/CurlFtp/CurlFtp.cpp

+ 2 - 2
module/CurlFtp/CurlFtp.cpp

@@ -380,8 +380,8 @@ static long chunk_bgn_cb(const void* transfer_info, void* ptr, int /*remains*/)
         return CURL_CHUNK_BGN_FUNC_SKIP;
         return CURL_CHUNK_BGN_FUNC_SKIP;
     }
     }
 
 
-    fi.size = static_cast<uint64_t>(finfo->size);
     fi.name = (finfo->filename ? std::string(finfo->filename) : std::string());
     fi.name = (finfo->filename ? std::string(finfo->filename) : std::string());
+    fi.size = static_cast<uint64_t>(finfo->size);
 
 
     out->push_back(std::move(fi));
     out->push_back(std::move(fi));
 
 
@@ -1244,7 +1244,7 @@ bool CurlFtp::uploadData(char* srcData, size_t size, const std::string& remoteFi
     curl_easy_setopt(m_curl, CURLOPT_FTP_USE_EPSV, 0L);
     curl_easy_setopt(m_curl, CURLOPT_FTP_USE_EPSV, 0L);
     /* 使用二进制传输 */
     /* 使用二进制传输 */
     curl_easy_setopt(m_curl, CURLOPT_TRANSFERTEXT, 0L);
     curl_easy_setopt(m_curl, CURLOPT_TRANSFERTEXT, 0L);
-    
+
     if(m_enableCurlDebug)
     if(m_enableCurlDebug)
     {
     {
         /* 启用调试信息 */
         /* 启用调试信息 */