mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 08:39:34 +08:00
修正文件路径
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) {
|
||||
_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){
|
||||
|
Loading…
Reference in New Issue
Block a user