MCPcopy Create free account
hub / github.com/antlr/codebuff / children

Method children

output/java_guava/1.4.19/Files.java:836–846  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

834
835 private static final TreeTraverser<File> FILE_TREE_TRAVERSER = new TreeTraverser<File>() {
836 @Override
837 public Iterable<File> children(File file) {
838 // check isDirectory() just because it may be faster than listFiles() on a non-directory
839 if (file.isDirectory()) {
840 File[] files = file.listFiles();
841 if (files != null) {
842 return Collections.unmodifiableList(Arrays.asList(files));
843 }
844 }
845 return Collections.emptyList();
846 }
847
848 @Override
849 public String toString() {

Callers

nothing calls this directly

Calls 2

isDirectoryMethod · 0.45
asListMethod · 0.45

Tested by

no test coverage detected