Skip to content

Commit

Permalink
CB-930: DirectoryReader creates null error code for inaccessible dire…
Browse files Browse the repository at this point in the history
…ctory
  • Loading branch information
macdonst committed Aug 14, 2012
1 parent 2dc0727 commit 6195b2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/src/org/apache/cordova/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ private JSONArray readEntries(String fileName) throws FileNotFoundException, JSO
if (fp.isDirectory()) {
File[] files = fp.listFiles();
for (int i = 0; i < files.length; i++) {
entries.put(getEntry(files[i]));
if (files[i].canRead()) {
entries.put(getEntry(files[i]));
}
}
}

Expand Down

0 comments on commit 6195b2c

Please sign in to comment.