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

@@ -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;