修正文件路径
This commit is contained in:
parent
e92ad6b5b8
commit
bc64460327
|
|
@ -25,7 +25,7 @@ HttpDownloader::~HttpDownloader() {
|
||||||
void HttpDownloader::startDownload(const string& url, const string& filePath,bool bAppend) {
|
void HttpDownloader::startDownload(const string& url, const string& filePath,bool bAppend) {
|
||||||
_filePath = filePath;
|
_filePath = filePath;
|
||||||
if(_filePath.empty()){
|
if(_filePath.empty()){
|
||||||
_filePath = exeDir() + "/HttpDownloader/" + MD5(url).hexdigest();
|
_filePath = exeDir() + "HttpDownloader/" + MD5(url).hexdigest();
|
||||||
}
|
}
|
||||||
_saveFile = File::createfile_file(_filePath.data(),bAppend ? "ab" : "wb");
|
_saveFile = File::createfile_file(_filePath.data(),bAppend ? "ab" : "wb");
|
||||||
if(!_saveFile){
|
if(!_saveFile){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue