use of org.apache.gobblin.util.filters.HiddenFilter in project incubator-gobblin by apache.
the class RecursivePathFinder method getPaths.
public Set<FileStatus> getPaths(boolean skipHiddenPaths) throws IOException {
if (!this.fs.exists(this.rootPath)) {
return Sets.newHashSet();
}
PathFilter actualFilter = skipHiddenPaths ? new AndPathFilter(new HiddenFilter(), this.pathFilter) : this.pathFilter;
List<FileStatus> files = FileListUtils.listFilesToCopyAtPath(this.fs, this.rootPath, actualFilter, includeEmptyDirectories);
return Sets.newHashSet(files);
}
use of org.apache.gobblin.util.filters.HiddenFilter in project incubator-gobblin by apache.
the class FsCommitSequenceStore method get.
@Override
public Collection<String> get(String jobName) throws IOException {
ImmutableList.Builder<String> builder = new ImmutableList.Builder<>();
Path jobPath = new Path(this.rootPath, jobName);
if (this.fs.exists(jobPath)) {
for (FileStatus status : this.fs.listStatus(jobPath, new HiddenFilter())) {
builder.add(status.getPath().getName());
}
}
return builder.build();
}
Aggregations