* work around weird folder file listing permission issues
This commit is contained in:
parent
408efd166d
commit
7ac73b24a6
|
@ -413,7 +413,11 @@ public final class FileUtilities {
|
||||||
if (depth > maxDepth)
|
if (depth > maxDepth)
|
||||||
return;
|
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
|
if (!listHiddenFiles && file.isHidden()) // ignore hidden files
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue