From 5a927fe5cd015bf00bc992220c0d4f8b802ca044 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 03 十二月 2024 09:37:21 +0800
Subject: [PATCH] 1.PLC页增加两按钮,将原测试代码移到此处
---
SourceCode/Bond/BondEq/ToolUnits.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/BondEq/ToolUnits.cpp b/SourceCode/Bond/BondEq/ToolUnits.cpp
index 3c65c30..944503a 100644
--- a/SourceCode/Bond/BondEq/ToolUnits.cpp
+++ b/SourceCode/Bond/BondEq/ToolUnits.cpp
@@ -80,6 +80,10 @@
void CToolUnits::createDir(const char* pszDir)
{
+ if (isDirectory(std::string(pszDir))) {
+ return;
+ }
+
CString strDir = pszDir;
int lastIndex = 0;
int index = strDir.Find(_T("\\"), lastIndex);
--
Gitblit v1.9.3