up:远端不存在目录校验功能测试完毕。

This commit is contained in:
2025-11-08 18:11:52 +08:00
parent bd1f0ffb8c
commit 910c1598f2
15 changed files with 777 additions and 37 deletions

View File

@@ -89,12 +89,12 @@ void ClientCore::handleAsk(QSharedPointer<FrameBuffer> frame)
if (msg.command == STRMSG_AC_CHECK_FILE_EXIST) {
msg.command = STRMSG_AC_ANSWER_FILE_EXIST;
for (auto& item : msg.mapData) {
if (item.mark == STRMSG_AC_UP) {
if (!Util::DirExist(item.key, true)) {
if (item.command == STRMSG_AC_UP) {
if (!Util::DirExist(item.path, false)) {
item.state = static_cast<qint32>(FCS_DIR_NOT_EXIST);
}
} else {
if (!Util::FileExist(item.key)) {
if (!Util::FileExist(item.path)) {
item.state = static_cast<qint32>(FCS_FILE_NOT_EXIST);
}
}