fun:文件校验功能添加(未结束)。
This commit is contained in:
@@ -125,6 +125,16 @@ QString Util::GetVersion()
|
||||
return ver;
|
||||
}
|
||||
|
||||
bool Util::FileExist(const QString& path)
|
||||
{
|
||||
return QFile::exists(path);
|
||||
}
|
||||
|
||||
bool Util::DirExist(const QString& path)
|
||||
{
|
||||
return QDir(path).exists();
|
||||
}
|
||||
|
||||
QString DirFileHelper::GetErr() const
|
||||
{
|
||||
return QString();
|
||||
|
||||
@@ -49,6 +49,8 @@ public:
|
||||
static QString GetCurConfigPath(const QString& sub);
|
||||
static void ConsoleMsgHander(QtMsgType type, const QMessageLogContext& context, const QString& msg);
|
||||
static QString GetVersion();
|
||||
static bool FileExist(const QString& path);
|
||||
static bool DirExist(const QString& path);
|
||||
};
|
||||
|
||||
class DirFileHelper : public QObject
|
||||
|
||||
Reference in New Issue
Block a user