mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-07 22:27:59 +08:00
fix bug
This commit is contained in:
parent
2cd6aa50d0
commit
3ef5ea6c86
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.8.0.M4 (2022-04-18)
|
# 5.8.0.M4 (2022-04-19)
|
||||||
|
|
||||||
### ❌不兼容特性
|
### ❌不兼容特性
|
||||||
* 【json 】 【可能兼容问题】JSONArray删除部分构造
|
* 【json 】 【可能兼容问题】JSONArray删除部分构造
|
||||||
@ -21,6 +21,7 @@
|
|||||||
* 【core 】 修复StrUtil.firstNonX非static问题(issue#2257@Github)
|
* 【core 】 修复StrUtil.firstNonX非static问题(issue#2257@Github)
|
||||||
* 【core 】 修复SimpleCache线程安全问题
|
* 【core 】 修复SimpleCache线程安全问题
|
||||||
* 【core 】 修复ClassLoaderUtil中可能的关联ClassLoader错位问题
|
* 【core 】 修复ClassLoaderUtil中可能的关联ClassLoader错位问题
|
||||||
|
* 【extra 】 修复Sftp错误内容解析大小写问题(issue#I53GPI@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ public class Sftp extends AbstractFtp {
|
|||||||
} catch (SftpException e) {
|
} catch (SftpException e) {
|
||||||
final String msg = e.getMessage();
|
final String msg = e.getMessage();
|
||||||
// issue#I4P9ED@Gitee
|
// 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
|
// 文件不存在直接返回false
|
||||||
// pr#378@Gitee
|
// pr#378@Gitee
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user