fun:文件校验功能添加(未结束)。

This commit is contained in:
2025-11-05 13:09:12 +08:00
parent 9bed3ed536
commit 1a81c34840
11 changed files with 229 additions and 15 deletions

View File

@@ -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();

View File

@@ -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