From 004d8941296f2ada530260d74186b6234661e08e Mon Sep 17 00:00:00 2001 From: taynpg Date: Tue, 17 Dec 2024 15:36:05 +0800 Subject: [PATCH] =?UTF-8?q?check=EF=BC=9A=E6=B7=BB=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?=E8=BD=BD=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=96=87=E4=BB=B6=E6=98=AF=E5=90=A6=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=EF=BC=8C=E9=98=B2=E6=AD=A2=E8=BE=93=E5=85=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/client.cpp b/client/client.cpp index 1ed14a5..c967f22 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -100,6 +100,12 @@ bool CClient::up_task(const std::string& cmd) auto list = CFileOpr::get_file_list(cmd); std::string msg; for (const auto& item : list) { + + if (!fs::exists(item)) { + logger_->error("File {} not exist, please check!", item); + return false; + } + if (msg.empty()) { msg.append(item); } else {