MCPcopy Create free account
hub / github.com/davidgiven/luje / listFiles

Method listFiles

lib/java/io/File.java:1006–1017  ·  view source on GitHub ↗

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. @

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 12

listMethod · 0.95
properPathMethod · 0.95
isDirectoryImplMethod · 0.95
existsImplMethod · 0.95
isWriteOnlyImplMethod · 0.95
listImplMethod · 0.95
toStringMethod · 0.95
addMethod · 0.95
toArrayMethod · 0.95
sizeMethod · 0.95
lengthMethod · 0.65
acceptMethod · 0.65

Tested by

no test coverage detected