VIVO-581 Don’t check for “regular files”, just check for “not directory”.
This commit is contained in:
parent
f981fd2c53
commit
356e86de70
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ public class FreemarkerTemplateLoader implements TemplateLoader {
|
|||
}
|
||||
|
||||
public boolean fileQualifies(Path path) {
|
||||
return Files.isRegularFile(path) && Files.isReadable(path);
|
||||
return Files.isReadable(path) && !Files.isDirectory(path);
|
||||
}
|
||||
|
||||
public SortedSet<PathPieces> getMatches() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue