1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* 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

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;
}