mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* 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 {
|
||||
File folder = dir.toFile();
|
||||
|
||||
if (folder.isHidden()) {
|
||||
if (folder.isHidden() || !folder.canRead()) {
|
||||
return FileVisitResult.SKIP_SUBTREE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user