From 17b4d2e75514f4e8019e015b2eb3dbc6301ea83a Mon Sep 17 00:00:00 2001
From: w1146869587 <wah1146869587@126.com>
Date: 星期一, 08 十一月 2021 15:52:09 +0800
Subject: [PATCH] watch
---
mbwatch/mbfileutil.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/mbwatch/mbfileutil.cpp b/mbwatch/mbfileutil.cpp
index 767db8c..922892d 100644
--- a/mbwatch/mbfileutil.cpp
+++ b/mbwatch/mbfileutil.cpp
@@ -1,6 +1,7 @@
#include "mbfileutil.h"
#include <QFileInfo>
#include <QDateTime>
+#include <QDir>
CMBFileUtil::CMBFileUtil()
{
@@ -21,3 +22,11 @@
QString strLastTime = lastModifiedTime.toString("yyyy.MM.dd hh:mm:ss");
return strLastTime;
}
+
+
+bool CMBFileUtil::createLevelDir(QString path)
+{
+ QDir folder;
+ return folder.mkpath(path);
+}
+
--
Gitblit v1.9.1