2014-08-21 07:58:11 +00:00
|
|
|
#include "FileSystem.h"
|
|
|
|
|
|
|
|
#include <QDir>
|
2014-08-21 10:36:28 +00:00
|
|
|
#include <QFileInfo>
|
2014-08-21 07:58:11 +00:00
|
|
|
|
|
|
|
std::string FileSystem::getTempFile(const std::string &filename)
|
|
|
|
{
|
|
|
|
return QDir::temp().filePath(QString::fromStdString(filename)).toStdString();
|
|
|
|
}
|
2014-08-21 10:36:28 +00:00
|
|
|
|
|
|
|
bool FileSystem::isFile(const std::string &filepath)
|
|
|
|
{
|
|
|
|
return QFileInfo(QString::fromStdString(filepath)).exists();
|
|
|
|
}
|