* sanity checks for n00bs passing system folders to filebot
This commit is contained in:
parent
f530288126
commit
0484822224
@ -155,7 +155,7 @@ public class ScriptShellMethods {
|
|||||||
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
|
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
|
||||||
File folder = dir.toFile();
|
File folder = dir.toFile();
|
||||||
|
|
||||||
if (folder.isHidden()) {
|
if (folder.isHidden() || !folder.canRead()) {
|
||||||
return FileVisitResult.SKIP_SUBTREE;
|
return FileVisitResult.SKIP_SUBTREE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user