CB-930: DirectoryReader creates null error code for inaccessible directory

This commit is contained in:
macdonst 2012-08-14 13:50:59 -04:00
parent 2dc0727e36
commit 6195b2c99d

View File

@ -298,7 +298,9 @@ public class FileUtils extends Plugin {
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]));
}
}
}