Returns an array of files contained in the directory represented by this file. The result is null if this file is not a directory. The paths of the files in the array are absolute if the path of this file is absolute, they are relative otherwise. @return an array of files or null. @
()
| 1004 | * @see #isDirectory |
| 1005 | */ |
| 1006 | public File[] listFiles() { |
| 1007 | String[] tempNames = list(); |
| 1008 | if (tempNames == null) { |
| 1009 | return null; |
| 1010 | } |
| 1011 | int resultLength = tempNames.length; |
| 1012 | File results[] = new File[resultLength]; |
| 1013 | for (int i = 0; i < resultLength; i++) { |
| 1014 | results[i] = new File(this, tempNames[i]); |
| 1015 | } |
| 1016 | return results; |
| 1017 | } |
| 1018 | |
| 1019 | /** |
| 1020 | * Gets a list of the files in the directory represented by this file. This |
nothing calls this directly
no test coverage detected