fix:修正上传文件夹未报错。
This commit is contained in:
parent
80cea07a5e
commit
9b8af77bcf
@ -179,7 +179,12 @@ bool CClient::up_task(const std::string& param)
|
|||||||
for (const auto& item : list) {
|
for (const auto& item : list) {
|
||||||
|
|
||||||
if (!fs::exists(item)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user