This commit is contained in:
Looly 2022-04-19 18:50:56 +08:00
parent 2cd6aa50d0
commit 3ef5ea6c86
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
-------------------------------------------------------------------------------------------------------------
# 5.8.0.M4 (2022-04-18)
# 5.8.0.M4 (2022-04-19)
### ❌不兼容特性
* 【json 】 【可能兼容问题】JSONArray删除部分构造
@ -21,6 +21,7 @@
* 【core 】 修复StrUtil.firstNonX非static问题issue#2257@Github
* 【core 】 修复SimpleCache线程安全问题
* 【core 】 修复ClassLoaderUtil中可能的关联ClassLoader错位问题
* 【extra 】 修复Sftp错误内容解析大小写问题issue#I53GPI@Gitee
-------------------------------------------------------------------------------------------------------------

View File

@ -340,7 +340,7 @@ public class Sftp extends AbstractFtp {
} catch (SftpException e) {
final String msg = e.getMessage();
// issue#I4P9ED@Gitee
if (msg.contains("No such file") || msg.contains("does not exist")) {
if (StrUtil.containsAnyIgnoreCase(msg, "No such file", "does not exist")) {
// 文件不存在直接返回false
// pr#378@Gitee
return false;