diff --git a/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java b/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java index 295186df..6f44591c 100644 --- a/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java +++ b/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java @@ -132,7 +132,7 @@ public class LocalFileTemplate implements FileTemplate { return Arrays.stream(FileUtil.ls(dir)).filter(file -> file.getName().startsWith(prefix)).map(file -> { S3ObjectSummary summary = new S3ObjectSummary(); summary.setKey(file.getName()); - return new S3ObjectSummary(); + return summary; }).collect(Collectors.toList()); }