* work around weird folder file listing permission issues

This commit is contained in:
Reinhard Pointner 2014-02-21 16:53:29 +00:00
parent 408efd166d
commit 7ac73b24a6
1 changed files with 5 additions and 1 deletions

View File

@ -413,7 +413,11 @@ public final class FileUtilities {
if (depth > maxDepth)
return;
for (File file : folder.listFiles()) {
File[] children = folder.listFiles();
if (children == null)
return;
for (File file : children) {
if (!listHiddenFiles && file.isHidden()) // ignore hidden files
continue;