* sanity checks for n00bs passing system folders to filebot

This commit is contained in:
Reinhard Pointner 2014-10-04 07:50:32 +00:00
parent f530288126
commit 0484822224
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public class ScriptShellMethods {
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
File folder = dir.toFile();
if (folder.isHidden()) {
if (folder.isHidden() || !folder.canRead()) {
return FileVisitResult.SKIP_SUBTREE;
}