1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 13:58:16 -05:00

* 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

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;