You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include "DirOperation.h"
-
- #include <QDir>
- #include <QString>
-
- bool DirOperation::CreateDir(std::string path)
- {
- if (path == "")
- return false;
- return QDir().mkpath(path.c_str());
- }
-
- std::string DirOperation::GetExePath()
- {
- return QDir::currentPath().toStdString();
- }
-
- std::string DirOperation::ConcatePath(std::string path1, std::string path2)
- {
- return QDir::cleanPath(QDir(path1.c_str()).filePath(path2.c_str())).toStdString();
- }
|