[automation] ScriptFileWatcher subdirectory loading upon startup no longer hardcoded to true (#2664)

Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
pull/2679/head
Jonathan Gilbert 2022-01-08 09:19:38 +00:00 committed by GitHub
parent dbb1382f65
commit 89aae83b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -137,9 +137,11 @@ public class ScriptFileWatcher extends AbstractWatchService implements ReadyServ
if (file.exists()) {
File[] files = file.listFiles();
if (files != null) {
for (File f : files) {
if (!f.isHidden()) {
importResources(f);
if (watchSubDirectories()) {
for (File f : files) {
if (!f.isHidden()) {
importResources(f);
}
}
}
} else {