paysages3d/src/system/FileSystem.cpp

13 lines
337 B
C++
Raw Normal View History

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