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 {