fix ftp bug

This commit is contained in:
Looly
2020-07-06 15:07:32 +08:00
parent 96233721f1
commit 2fd5c8c32e
3 changed files with 4 additions and 3 deletions

View File

@@ -298,7 +298,7 @@ public class Ftp extends AbstractFtp {
String fileName;
for (FTPFile ftpFile : ftpFiles) {
fileName = ftpFile.getName();
if (!StrUtil.equals(".", fileName) && !StrUtil.equals("..", fileName)) {
if (false == StrUtil.equals(".", fileName) && false == StrUtil.equals("..", fileName)) {
if (null == filter || filter.accept(ftpFile)) {
result.add(ftpFile);
}