public static class FilePathFilter.DefaultFilter extends FilePathFilter
FilePathFilter.DefaultFilterHADOOP_COPYING| Modifier and Type | Method and Description |
|---|---|
boolean |
filterPath(Path filePath)
Returns
true if the filePath given is to be
ignored when processing a directory, e.g. |
createDefaultFilterpublic boolean filterPath(Path filePath)
FilePathFiltertrue if the filePath given is to be
ignored when processing a directory, e.g.
public boolean filterPaths(Path filePath) {
return filePath.getName().startsWith(".") || filePath.getName().contains("_COPYING_");
}
filterPath in class FilePathFilterCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.