From f966c2bb96a6aebd96197d0acfcd4352606bd8f7 Mon Sep 17 00:00:00 2001 From: "Cloud.Liu" Date: Wed, 29 May 2019 19:19:47 +0800 Subject: [PATCH] =?UTF-8?q?DEC-7852=20HDFS=E5=AE=9A=E6=97=B6=E8=B0=83?= =?UTF-8?q?=E5=BA=A6=E7=BB=93=E6=9E=9C=E4=B8=8D=E5=8F=AF=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/plugin/hdfs/repository/core/HDFSResourceRepository.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/fr/plugin/hdfs/repository/core/HDFSResourceRepository.java b/src/main/java/com/fr/plugin/hdfs/repository/core/HDFSResourceRepository.java index 232a80b..3132486 100644 --- a/src/main/java/com/fr/plugin/hdfs/repository/core/HDFSResourceRepository.java +++ b/src/main/java/com/fr/plugin/hdfs/repository/core/HDFSResourceRepository.java @@ -188,6 +188,9 @@ public class HDFSResourceRepository extends BaseResourceRepository { FileStatus[] statuses = fs.listStatus(new Path(dir), new PathFilter() { @Override public boolean accept(Path path) { + if (filter == null) { + return true; + } return filter.accept(path.getName()); } });