diff --git a/client/client.cpp b/client/client.cpp index 8f7601b..1c9354d 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -179,7 +179,12 @@ bool CClient::up_task(const std::string& param) for (const auto& item : list) { if (!fs::exists(item)) { - logger_->error("File {} not exist, please check!", item); + logger_->error("File {} not exist, please check.", item); + return false; + } + + if (!fs::is_regular_file(item)) { + logger_->error("Only Support Up File, But directory.", item); return false; }