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

Method children

corpus/java/training/guava/io/Files.java:794–805  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

792 private static final TreeTraverser<File> FILE_TREE_TRAVERSER =
793 new TreeTraverser<File>() {
794 @Override
795 public Iterable<File> children(File file) {
796 // check isDirectory() just because it may be faster than listFiles() on a non-directory
797 if (file.isDirectory()) {
798 File[] files = file.listFiles();
799 if (files != null) {
800 return Collections.unmodifiableList(Arrays.asList(files));
801 }
802 }
803
804 return Collections.emptyList();
805 }
806
807 @Override
808 public String toString() {

Callers

nothing calls this directly

Calls 2

isDirectoryMethod · 0.45
asListMethod · 0.45

Tested by

no test coverage detected