NOISSUE dissolve util library
This commit is contained in:
@ -14,13 +14,13 @@
|
||||
*/
|
||||
|
||||
#include "CacheDownload.h"
|
||||
#include <pathutils.h>
|
||||
|
||||
#include <QCryptographicHash>
|
||||
#include <QFileInfo>
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
#include "Env.h"
|
||||
#include <FileSystem.h>
|
||||
|
||||
CacheDownload::CacheDownload(QUrl url, MetaEntryPtr entry)
|
||||
: NetAction(), md5sum(QCryptographicHash::Md5)
|
||||
@ -44,7 +44,7 @@ void CacheDownload::start()
|
||||
m_output_file.reset(new QSaveFile(m_target_path));
|
||||
|
||||
// if there already is a file and md5 checking is in effect and it can be opened
|
||||
if (!ensureFilePathExists(m_target_path))
|
||||
if (!FS::ensureFilePathExists(m_target_path))
|
||||
{
|
||||
qCritical() << "Could not create folder for " + m_target_path;
|
||||
m_status = Job_Failed;
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "Env.h"
|
||||
#include "HttpMetaCache.h"
|
||||
#include "FileSystem.h"
|
||||
#include <pathutils.h>
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QFile>
|
||||
@ -33,7 +32,7 @@
|
||||
QString MetaEntry::getFullPath()
|
||||
{
|
||||
// FIXME: make local?
|
||||
return PathCombine(ENV.metacache()->getBasePath(base), path);
|
||||
return FS::PathCombine(ENV.metacache()->getBasePath(base), path);
|
||||
}
|
||||
|
||||
HttpMetaCache::HttpMetaCache(QString path) : QObject()
|
||||
@ -77,7 +76,7 @@ MetaEntryPtr HttpMetaCache::resolveEntry(QString base, QString resource_path,
|
||||
}
|
||||
|
||||
auto &selected_base = m_entries[base];
|
||||
QString real_path = PathCombine(selected_base.base_path, resource_path);
|
||||
QString real_path = FS::PathCombine(selected_base.base_path, resource_path);
|
||||
QFileInfo finfo(real_path);
|
||||
|
||||
// is the file really there? if not -> stale
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include "Env.h"
|
||||
#include "MD5EtagDownload.h"
|
||||
#include <pathutils.h>
|
||||
#include <FileSystem.h>
|
||||
#include <QCryptographicHash>
|
||||
#include <QDebug>
|
||||
|
||||
@ -55,7 +55,7 @@ void MD5EtagDownload::start()
|
||||
// no expected md5. we use the local md5sum as an ETag
|
||||
}
|
||||
}
|
||||
if (!ensureFilePathExists(filename))
|
||||
if (!FS::ensureFilePathExists(filename))
|
||||
{
|
||||
emit failed(m_index_within_job);
|
||||
return;
|
||||
|
@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
#include "NetJob.h"
|
||||
#include "pathutils.h"
|
||||
#include "MD5EtagDownload.h"
|
||||
#include "ByteArrayDownload.h"
|
||||
#include "CacheDownload.h"
|
||||
|
Reference in New Issue
Block a user