Let http synchronizations overwrite files

This commit is contained in:
Emil Axelsson
2017-12-23 17:54:22 +01:00
parent 624167744d
commit fd2568fdab
3 changed files with 36 additions and 12 deletions

View File

@@ -206,7 +206,9 @@ bool HttpSynchronization::trySyncFromUrl(std::string listUrl) {
ghoul::filesystem::FileSystem::PathSeparator +
filename;
downloads.push_back(std::make_unique<AsyncHttpFileDownload>(line, fileDestination));
downloads.push_back(std::make_unique<AsyncHttpFileDownload>(
line, fileDestination, HttpFileDownload::Overwrite::Yes));
auto& fileDownload = downloads.back();
++nDownloads;