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

Method children

output/java_guava/1.4.16/Files.java:835–845  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isDirectoryMethod · 0.45
asListMethod · 0.45

Tested by

no test coverage detected