|
|
@ -188,6 +188,9 @@ public class HDFSResourceRepository extends BaseResourceRepository { |
|
|
|
FileStatus[] statuses = fs.listStatus(new Path(dir), new PathFilter() { |
|
|
|
FileStatus[] statuses = fs.listStatus(new Path(dir), new PathFilter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean accept(Path path) { |
|
|
|
public boolean accept(Path path) { |
|
|
|
|
|
|
|
if (filter == null) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
return filter.accept(path.getName()); |
|
|
|
return filter.accept(path.getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|