修正文件路径

This commit is contained in:
xiongziliang 2017-05-23 16:48:33 +08:00
parent e92ad6b5b8
commit bc64460327

View File

@ -25,7 +25,7 @@ HttpDownloader::~HttpDownloader() {
void HttpDownloader::startDownload(const string& url, const string& filePath,bool bAppend) {
_filePath = filePath;
if(_filePath.empty()){
_filePath = exeDir() + "/HttpDownloader/" + MD5(url).hexdigest();
_filePath = exeDir() + "HttpDownloader/" + MD5(url).hexdigest();
}
_saveFile = File::createfile_file(_filePath.data(),bAppend ? "ab" : "wb");
if(!_saveFile){