(File file)
| 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() { |
nothing calls this directly
no test coverage detected